LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

slide switch button color

Solved!
Go to solution
OK,
  So I often use slide switches (from the modern-boolean palet)
 
I can change the background color via properties dialog box or a property node
 
however, I want to change the color of the button itself.   How do I do this??
  I know it must be possible because I have some that are always grey, and some that turn green when sent T
 
This has been bugging me for over a month now; hope someone can help!
 
cheers, Kevin
0 Kudos
Message 1 of 13
(7,890 Views)

You can color it by using the coloring tool directly on it (the coloring tool is available in the tools palette), but I don't think you can change it programmatically.

The "button" is a part of the boolean called "boolean light" and I believe it unique to this control and the push button and is not affected by the foreground or backround color.


___________________
Try to take over the world!
0 Kudos
Message 2 of 13
(7,884 Views)

Is this still the case with LabVIEW 8.6?

 

 

Ryan

0 Kudos
Message 3 of 13
(7,512 Views)

Nothing was changed in this area, so I would say yes.

 

If you want, you can implement your own version in 8.x using an XControl, but I don't think it's worth it.


___________________
Try to take over the world!
Message 4 of 13
(7,496 Views)
This may not be exactly what you are looking for but I made it just for you. Take a look. All you have to do is change the background color and the button color changes too.
Tim
GHSP
0 Kudos
Message 5 of 13
(7,467 Views)
Here is one where they stay the same color
Tim
GHSP
0 Kudos
Message 6 of 13
(7,464 Views)
Solution
Accepted by Laura F.
Message 7 of 13
(7,458 Views)

Aeastet,

     Thank you so much. This is what I want to use.

 

Ryan

0 Kudos
Message 8 of 13
(7,447 Views)
No problem. I like a challenge.
Tim
GHSP
0 Kudos
Message 9 of 13
(7,425 Views)

Setting the 3D slide button to different colors is almost a must, because the switch doesn't travel very much. You have to look carefully to see what position it's in, especially at the default size.

 

I liked the old style slide switches. Easy to see, easy to change / manipulate the colors....

old slide butt.gif

 

I wish there was a (native) 3D version of this switch - at least one with a drop shadow to match the other 3D switches. If I need a slide switch on a 3D panel, I often resort to the Slide numeric control, just to get more visual travel, set to 0 min 1 max.

 

Message Edited by Broken Arrow on 10-06-2009 07:40 AM
Richard






Message 10 of 13
(7,410 Views)