07-05-2005 05:30 PM
07-05-2005 10:57 PM
So what you want is to have the button that starts out as one color. You press it and it turns a second color. Press it again it turns a third color, right? If that's all you need create an event-driven interface that has a Value Change event for the button. Each time the event fires, use a property node to change the color of the button.
Do you need to see an example?
Mike...
07-05-2005 11:11 PM
07-06-2005 07:16 PM
07-07-2005 05:47 PM
07-07-2005 08:58 PM - edited 07-07-2005 08:58 PM
Message Edité par Jean-Pierre Drolet le 07-07-2005 10:07 PM
LabVIEW, C'est LabVIEW
07-08-2005 06:44 AM
There are always multiple ways of doing things in LV and if you want multiple controls with this behavior, Jean-Pierre's solution is probibly better. The important thing to remember when choosing between competing implementations of the same function is to consider the strengths and weaknesses of each.
For example, if you need to simply toggling between some N-number of set colors, Jean-Pierre's control is clearly the way to go. Neat, reusable and no code required. (BTW, He's a great guy to have giving you advice.) On the other hand, if the colors might need to change, or different controls might have different colors, or you only want to change the color state of the control if some operation completes successfully, then you might want to consider my approach. It all depends on how you want the interface to work.
Mike...
07-08-2005 12:29 PM
07-08-2005 12:51 PM
LabVIEW, C'est LabVIEW
07-08-2005 04:19 PM
Jean-Pierre,
How did you make the down arrow transparent?