11-25-2016 11:28 AM
Hello everyone,
I would like to generate an event when a user click on the label of a Boolean control.
I often have clients who try to click on the text of the control rather than the image of the control itself.
Normally, we can simply do this by create a mouse down event on the control.
The problem that I face is that my control is a strict type def.
I discovered that, for labview 2012 (maybe for others), the label and the caption does not belong to the control if the control is a type def.
i.e. labview will not fire an event (mouse in / mouse down / ...) on the label (or caption) if the control is a type def (or strict type def)
I was wondering if something clever can be done to fix this.
I have already considered to put a transparent control on the top of my label, but I was wondering if something "cleaner" can be achieved.
I am currently working on Labview 2012. v12.0f3
Windows10
Thanks,
Nick
I do apology if this topic is already created, I have tried to look on the forum before posting.
I have also tried to look in bugs registry. But I didn't find anything related to my problem.
Solved! Go to Solution.
11-25-2016 11:36 AM
11-25-2016 06:48 PM
@GerdW wrote:Hi Nicolas,
use the boolean text!
It is part of the control and it will react on mouse clicks on the boolean text too…
To expand a bit on this, hide the label on the front panel and turn on the Boolean text.
11-26-2016 06:48 AM
Thanks a lot to both of you for the quick solution.
Best
Nick