03-04-2010 09:41 AM
I have many boolean controls and indicators in my VI and I would like to determine which boolean is selected (left clicked) in a pane mouse down event. Can I do this without having to specify each of the booleans in the event case setup?
Thanks.
Jim
Solved! Go to Solution.
03-04-2010 09:46 AM
If you get a ref to all of your booleans they have properties that define there location and their size. Compare the click location with the bounds of each boolean and the one where
Left < click < right
AND
Top < click < bottom
you found the boolean the click was over.
It may be easier to use the array of bolean refs to create a Dynamic Event and then use the ref returned by the mouse down to get the label of teh boolean that was clicked.
Have fun,
Ben
03-04-2010 06:38 PM