Jump to content

Getting active row in listbox


Recommended Posts

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.

Link to comment

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".

Link to comment

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:

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.