06-11-2015 01:28 PM
I have an array set up on my front panel. When the user right clicks on an element in that array, I would like them to be able select from 3 different options. I have the shortcut menu working, but I need to know which element in the array the user right clicked on to determine what values to change. How can I get the index of the element?
Thanks for any help!
Solved! Go to Solution.
06-11-2015 02:05 PM
06-11-2015 03:22 PM
Solved it! Thanks
06-11-2015 04:13 PM
I was curious and thought the proposed solution was heavy depending on what you need to do exacly...
So here's some alternate solution, hope it may be helpful. You can also write some value to the clicked element.
06-11-2015 04:13 PM - edited 06-11-2015 04:15 PM
Deleted dup.
06-11-2015 04:31 PM - edited 06-11-2015 04:32 PM
Here is my solution, from my toolbox:
It accounts for the possibility of the array being scrolled away from 0,0.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-12-2015 10:24 AM
Couldn't you get index values from the array property node?
Also this doesn't account for if scrollbars are seen or not. And I usually like to know if my range is valid, because again I could be clicking on a scrollbar, or label and still get the Mouse Down event.
Here is one I posted a while ago.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord