LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variable background color for an enum control

Hello,

I would like to background color of an enum control to change automatically as a function of the text displayed in it.
For exemple, if the text is "running", the background would be green, if the text is "stopped", the color would be red and if the text is "initializing" the background would be yellow.

I did it for a numeric control and the only way I found is by using the color ramp control and by placing the transparent digital indicator over the color. Is there a better solution?
I don't want to change the color with a property node because I have about 30 controls to modify and the controls are in different clusters. I would prefer a custom control or something similar.

Thanks in advance.

Martin
St-Laurent
Quebec city, Canada
0 Kudos
Message 1 of 2
(3,777 Views)
I don't see another way of doing that only using property node of control.
For automatization of process use control reference. Create sub-vi that will get control reference and will change its color depending of text.
0 Kudos
Message 2 of 2
(3,777 Views)