06-10-2014 12:00 PM
I'm pulling a list from a file and displaying it in an array for my user to see. I want them to be able to click on a single entry in the array, and trigger a bunch of code related to that entry. I have this concept working, and it works great... except for 1 problem.
If the user clicks on the scrollbar to move the list up/down, labview treats this as having selected an element in the array. Hitting the Arrow up/down buttons is treated as an increment/decrement from that last selected point. Does anyone know of a way to do this so that the scrollbar is ignored and doesn't trigger my event? I've attached a snippet example of how it is set up. It's only the trigger event, not the whole UI.
Solved! Go to Solution.
06-10-2014 12:12 PM
Not sure if this is helpful but..
DId you try using a single column Listbox?
You could get the string values from this listbox by using a property node 'Item Names' Then setup the event handler to output the row that has been double clicked.
The row would feed an index array function so that you get the contents of the list entry that was double clicked.
06-10-2014 12:25 PM
Thank you so much, it took me a second to set it up, but it worked PERFECTLY. I hardly ever use listboxes, didn't even think to try those.