LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

captions and text labels get in the way of clicking boolean

I have used the captions and sometimes text labels to display text on the booleans for the front panel of an instrument. When I try to click on the boolean button though, I am just clicking on the text and the boolean's value is not changed. I have about 50 buttons made this way and am looking for any way to avoid having to create all new custom controls. Thanks for any input.

Chris
0 Kudos
Message 1 of 3
(3,188 Views)
If you want to display text that doesn't obscure the mouse, you should use the control's BOOLEAN TEXT property, not the Label or Caption. The STOP / CANCEL buttons have this ON by default, switches and lights have it OFF by default, but you can turn it on or off at will.
The BOOLEAN text does not interfere with the mouse.
You can set both the on and off value to the same thing if you need to.

As far as saving your work, you could write a program to loop over all your panel's controls and move the caption into the boolean text, but I doubt if it would do everything you need, and might be more hassle than just re-doing the controls.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 3
(3,188 Views)
One way might be to modify them programatically using property nodes. The code would open a reference to the VI. This would give you an array of references to the controls on the front panel, you could then use those references to make a set of standard modifications such as:

Hide/move/change labels or captions
modify the boolean text
perhaps even resize the controls.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 3
(3,188 Views)