LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you display different colors on text strings ?

Hi ,
Is there any way of displaying different colors on text strings ?
 
Thanks
SR
0 Kudos
Message 1 of 5
(5,275 Views)
Yes.  You can create a property node from your control/indicator, and then text->text colours->text colour, and you can wire any colour box constant or hex colour to that.
0 Kudos
Message 2 of 5
(5,262 Views)

You can manually highlite part of the string or one character and set its color, and repeat for other parts of the same string.  But I don't think you can do this programatically.

Just saw Novatron's answer.  That applies to the whole string.  Are you wanting to display one string with different color characters?  If so, see my answer.  If you want different strings to be of different colors, and all the characters in one string be the same color, use property nodes as Novatron suggested.

Message Edited by tbob on 07-10-2006 12:40 PM

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 5
(5,259 Views)
If you want multiple colors (or bold, italic etc) then you can use the text->selection start and selection end and then use the font properties. I have attached a small example.
Message 4 of 5
(5,255 Views)
How about that!  I learn something new every day.
- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 5
(5,245 Views)