Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change color for a custom graphic when a the state is changed

I have a custom graphic created in corel (WMF).  I inserted the graphic in the control panel.  The custom graphic symbolizes a piece of equipment.  My objective is to change the color of the piece of equipment  depending if it is on or off.  For example, when it is on, I want the custom graphic to be green.... when it is off the graphic to be red.
 
Hank
0 Kudos
Message 1 of 3
(6,007 Views)
Create two wmf files. One is green, another is red. Use MultiState object to switch color between ON and OFF.
 
You can also just use the Switch object with custom display. Select the green wmf for the On state, the red for Off state. The difference here is that you can click on the graphics, because it is a control.
Ryan Shi
National Instruments
0 Kudos
Message 2 of 3
(5,994 Views)

Make the color change part of the graphic a basic color like Black.

Select the area of the desired change and designate it as transparent.

Place a pipe object on the panel behindit, that changes the solors as desired.

0 Kudos
Message 3 of 3
(5,957 Views)