spaceboy Posted August 23, 2007 Report Share Posted August 23, 2007 hi, I'd like to be able to tell which row from a listbox was selected. This VI will run on a touch screen so the usual solution of using the double click event is not a good option. Instead I'd like the VI to tell which row the user chose after one press only (possibly adding a button if this isn't possible). What I have so far is attached. thanks, Jon. Quote Link to comment
JDave Posted August 23, 2007 Report Share Posted August 23, 2007 QUOTE(spaceboy @ Aug 22 2007, 10:55 AM) hi,I'd like to be able to tell which row from a listbox was selected. This VI will run on a touch screen so the usual solution of using the double click event is not a good option. Instead I'd like the VI to tell which row the user chose after one press only (possibly adding a button if this isn't possible). What I have so far is attached. Starting in 8, there are VI Server Methods to return the row (and column for tables, trees, and multicolumn listboxes) from a mouse coordinate. Just capture the Mouse Down event on your listbox, then feed the reference and mouse coordinates to the method "Point to Row". Quote Link to comment
spaceboy Posted August 23, 2007 Author Report Share Posted August 23, 2007 QUOTE(dsaunders @ Aug 22 2007, 09:04 PM) Starting in 8, there are VI Server Methods to return the row (and column for tables, trees, and multicolumn listboxes) from a mouse coordinate. Just capture the Mouse Down event on your listbox, then feed the reference and mouse coordinates to the method "Point to Row". Perfect! Thanks. :thumbup: Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.