LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom "oval" boolean button

hello,

Quick question:

I need to make a boolean button (like the OK button) that is oval, and has a solid color green when true and a solid red color when false.  We were using a rocker button, but we were told that the gray levels in it are "ugly."  Is there a quick way to do this?

ty,
Candice
0 Kudos
Message 1 of 10
(4,131 Views)
There is a round button in the classic controls palette. For a more generic solution, you can customize controls by right clicking them and selecting Advanced>>Customize. Then, you can copy the image from a round decoration and use it to replace the rectangle of the button. Read more in the LV help.

___________________
Try to take over the world!
Message 2 of 10
(4,123 Views)
 I've been instructed not to use the  classic indicator as they are "fugly."  But I will play around with the advanced customize options.  thanks for pointing me in the right direction.
0 Kudos
Message 3 of 10
(4,119 Views)
I think tst was alluding to this in his/her reply, but why not just resize a round LED?

Maybe you were trying to get away from the shading effects.  If not, this might be easier.


Message Edited by Novatron on 08-21-2006 02:30 PM

Message 4 of 10
(4,107 Views)
Try this item. I just used the coloring tool and moved the normal LED on the standard pushbutton to the back.

Message Edited by unclebump on 08-21-2006 01:32 PM

Message 5 of 10
(4,103 Views)
well that was the first thing I thought of, but an LED button cannot be manipulated.  Now the problem that I am running into is that I'm not sure how to edit the jpg of the oval so that the white space around it has an alpha value.
0 Kudos
Message 6 of 10
(4,102 Views)
"well that was the first thing I thought of, but an LED button cannot be manipulated."

Maybe I'm not understanding correctly, but I have used LEDs like this as controls.  I think the only things you can't manipulate at run time is the shape, and switching action.
Message 7 of 10
(4,097 Views)
unclebump,

That is exactly what was needed. If i wasn't such n00b then maybe I would understand how you did that.

Thanks!
0 Kudos
Message 8 of 10
(4,086 Views)
Put a standard boolean pushbutton control on the front panel. Show your tools pallette and select the coloring tool at the bottom. Go to the pushbutton and point at the dark led triangle on the right side. Right click and the coloring window will come up. The bottom left shows the current color that you selected. It will say LED OFF. Now move to the grey portion of the button and right click. The bottom left box should be colored grey 3D object. Move the cursor to the USER row and find the LED OFF color. Left click and the button will change colors.
 
Now change to the operate tool and push the button to the ON state. Repeat the above procedure using the LED ON color from the USER row. This will still have the triangular LED present on the right side. If you want to reomve this you need to Right click on the control and select advanced, customize. Click the wrench. Select the smallest white box with the LED in it. Then go to the toolbar button second from the right and select move to back. Click the tweezer toolbar button. Save this custom control and select replace in original vi.
Message 9 of 10
(4,077 Views)
thanks! it was the re-order button up there on the toolbar that was throwing me off. I didn't know that was there.  I really appreciate your patience, thanks very much!
0 Kudos
Message 10 of 10
(4,068 Views)