LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Boolean Button

Hi all,

 

I'm having trouble customizing a simple boolean button control.  It should be (and probably is) simple to do, but I'm stumped.  I'd like to create a button very similar to the oval boolean button, with on/off boolean text, AND an on/off LED indicator laid on top.  However, the button I'm trying to create would be rectangular in shape.  Please see the attached image.  Thanks in advance for any help.

 

screenshot.1.jpg

0 Kudos
Message 1 of 6
(5,049 Views)

You need to start with the oval button, because it has an LED. Now import the desired graphics into the various elements using the control editor.

Message 2 of 6
(5,037 Views)

You can also simply import an OFF and ON led graphics into the two states of the button. It does not need to be a real LED.

Message 3 of 6
(5,031 Views)

1. drop a boolean on your front panel right click and select advanced -> customize

 

2. click the wrench under the view menu (you should now see the tweezers)

 

3. right click the boolean and there are 4 selections in the picture items submenu

 

4. select the first one

 

5. right click the boolean and click import from file

 

6. repeat for the three other states of the button

 

7. click the tweezers

 

8. right click the boolean and select multiple text strings

 

9 now you can change the text in the true state and the false state

 

10.  you can also float some free text under the images to further describe the button states

 

 

- James

Using LV 2012 on Windows 7 64 bit
Message 4 of 6
(5,027 Views)
Message 5 of 6
(5,003 Views)

Thanks all.  I think I've finally got it.  All of your answers were helpful, but in the end, I like the way the LED on the oval resizes with the control, so I started with it, then just imported the rectangular button images over the various oval states.

0 Kudos
Message 6 of 6
(4,967 Views)