LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Weekly Nugget 04/12/2010

Here's a tip that I've known for a while, but after finding out that some LAVA guys didn't know it, I figured I should post it as a weeekly nugget.  If you want your Boolean checkbox controls to have clickable text (i.e. clicking the checkbox text will toggle the checkbox just like clicking the checkbox itself), you need to show only the Boolean Text on the checkbox and hide the Label:

 

checkbox_boolean_text.png

 

By default, you see the Label and the Boolean Text of a checkbox when you first drop it.  Clicking the label will not toggle a checkbox value at runtime.  So you need to change the Boolean Text to whatever user-visible text you want (typically it's the same as the label), then hide the label.  Now your user will be able to toggle the checkbox value by clicking its text or the checkbox itself.

Message Edited by Darren on 04-12-2010 02:49 PM
Message 1 of 2
(4,322 Views)

Be great if you could also do this on Radio Buttons.

 

BTW the boolean text on my controls is never the same as the label.  It also seems to position itself a bit differently to the label.

0 Kudos
Message 2 of 2
(4,102 Views)