LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can a boolean button display different texts with different fonts?

I am using a boolean button. One state is red and says "Pause" the other is green and says "Restart". Problem: I can't get "Pause" and "Restart" to have different colors and/or fonts. If I change one, LabVIEW changes the other.
0 Kudos
Message 1 of 3
(2,327 Views)
It is fixed that way. The only work around is to use property nodes to change color, size, etc. when the button is pressed. You could use the event structure the trigger on mouse down, check the value of the boolean, then use property nodes to change the text properties. See attached vi, saved in 7.0.
- tbob

Inventor of the WORM Global
Message 2 of 3
(2,327 Views)
Coloring the different states should'nt be an issue unless you're using one of the Booleans on the Dialog palette. For other controls, all you should need to do is set the control to the state you want and change the color with the paint tool. Fonts cannot be made different unless you set them with a property node.
Message 3 of 3
(2,327 Views)