LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change color of boolean control

I want to change the color of a button on the front panel. When I apply the background color for the boolean text and resize the button the background color just remains for the area of the text and the rest is gray. I want this to be uniform. Can someone please suggest any ideas?
0 Kudos
Message 1 of 4
(4,312 Views)
You need to color the Boolean control and not the text. The text background color is transparent by default. Just place the color tool to the left or right of the text. As you change colors in the palette, you should see the entire control change color. If it doesn't, you know you haven't selected the control. Note that you can't change the color of the dialog controls. These controls use the Windows color scheme.
Message 2 of 4
(4,312 Views)
You can do this with the property node. The color is a six-digit number that defines the RG and B channel values, both for the ON state and the OFF state. This is great if you want to programmatically change the color of the control. Otherwise you can just use the "dropper" function of the color tool pallete to reproduce the background color. Again, be sure to select the ON or OFF function first, before applying the color.

Good luck!

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
Message 3 of 4
(4,312 Views)
Thanks a lot ! That helped
0 Kudos
Message 4 of 4
(4,312 Views)