LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to re-paint a listbox, and to display ohms symbol w/text

Hi All,
      Please help me build a string which includes characters from the Roman alphabet and the ohms symbol.  I thought I'd done this before, but perhaps not.
 
The plan is to populate a listbox with such strings and set cell BG color to indicate test pass/fail.  BG color of all cells can be "cleared" (changed to default) by setting the color of cell (-2,-2) (thanks again becktho!)...
... but to see the change requires listbox to be re-painted.  Was hoping for a nice way to force repaint (besides re-size/re-pos.)
 
Any help would be appreciated!
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 1 of 7
(3,532 Views)

Dynamik,

To deal with the "re-paint" issue, try setting "Defer Panel Updates" for the front panel to true before you write the cell bkgrnds colors and then change it back to false (a jpg of what I mean is in a post by Ed Dickens here.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 2 of 7
(3,509 Views)

Hi Donald,

      That did it - works like a charm, thanks!

D.

 

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 3 of 7
(3,500 Views)
Dynamik,

On the Mac the ohms sign, Ω, is Option-z. In LV a string control with hex format shows the hex value of the ASCII character to be BD.

Lynn
0 Kudos
Message 4 of 7
(3,493 Views)
Thank you Lynn,
      I didn't realize it was important when I posted the question, but I'm on a windows box.  x00BD is the "1/2" symbol on most fonts here.  I guess your MAC is a "Unicode" environment.(?)
 
D.
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 5 of 7
(3,482 Views)
In Labview, switch to the Symbol font, then double click to make a label or comment, and type shift-W.  This makes W.
Also, unicode 03A9 is the code for ohms.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 7
(3,472 Views)

I just KNEW somebody was going to TAUNT Me by embedding the omega character in a reply (i don't know how...)

Thank you tbob!

     Actually, I was trying to put the omega-char in listbox items without restricting the entire listbox to Symbol...(It does appear in many other fonts Unicode=2126 but... .... ha!, found it in "Terminal" with an extended-ASCII value of 234 (xEA.) 

Thanks to all

Message Edited by Dynamik on 11-16-2005 05:02 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 7 of 7
(3,466 Views)