Discussion:
how to re-paint a listbox, and to display ohms symbol w/text
(too old to reply)
Dynamik
19 years ago
Permalink
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!
Donald
19 years ago
Permalink
Dynamik,
To&nbsp;deal with the&nbsp;"re-paint" issue, try setting "Defer Panel Updates" for the front panel to true before you write the cell bkgrnds colors&nbsp;and then change it back to false (a jpg of what I mean is in a post by Ed Dickens <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=117697" target="_blank">here</a>.
Dynamik
19 years ago
Permalink
Hi Donald,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; That did it - works like a charm, thanks!
D.
&nbsp;
Dynamik
19 years ago
Permalink
Thank you Lynn,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I didn't realize it was important when I posted the question, but I'm on a windows box.&nbsp; x00BD is the "1/2" symbol on most fonts here.&nbsp;&nbsp;I guess your MAC is a "Unicode" environment.(?)
&nbsp;
D.
tbob
19 years ago
Permalink
In Labview, switch to the Symbol font, then double click to make a label or comment, and type shift-W.&nbsp; This makes W.
Also, unicode 03A9 is the code for ohms.
Dynamik
19 years ago
Permalink
I just KNEW somebody was going to TAUNT Me by embedding the omega character in a reply (i don't know how...)
Thank you&nbsp;tbob!
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actually, I was trying to put the omega-char in&nbsp;listbox items&nbsp;without&nbsp;restricting the entire listbox to Symbol...(It does appear in many other fonts Unicode=2126 but...&nbsp;.... ha!,&nbsp;found it in "Terminal"&nbsp;with an extended-ASCII value of 234 (xEA.)&nbsp;
Thanks to allMessage Edited by Dynamik on 11-16-2005 05:02 PM

Loading...