LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Font color boolean control

Solved!
Go to solution

Hi all,

 

Could you  help me on one front panel programming question? 

 

I have one boolean control (Text button) which is inside one cluster. I  would like change the color of the font accoring to its status. Like when it button is ON, I would like color of font (ON) is white. And when the button is OFF, I would like font color change to black.

 

With the right click-->properties, I can only define color of font. However, it won't change according to status. 

 

Thank you!

0 Kudos
Message 1 of 3
(2,682 Views)
Solution
Accepted by topic author oly

The font color applies to all states. To do what you explicitly want to do then you have to change the font color programmatically using property nodes.

 

Or, you could simply change the color of the button itself. This way, you can set it directly in the properties and not have to update it programmatically.

Message 2 of 3
(2,674 Views)
Thanks...I will spend some time on Property Node then..
0 Kudos
Message 3 of 3
(2,663 Views)