Sign in to follow this  
Followers 0
HeXetic

Get index of selected list view item

3 posts in this topic

I am trying to get the index number of a selected item in a list view. In other words if a user selects one of the rows in the list view that can press a button and it will return the index number of the selected row. I looked at the _GUICtrlListView_GetHotItem function but that only appears to return the index of the item that the mouse is hovering over, however, this is the kind of thing i'm looking for.

Share this post


Link to post
Share on other sites



I am trying to get the index number of a selected item in a list view. In other words if a user selects one of the rows in the list view that can press a button and it will return the index number of the selected row. I looked at the _GUICtrlListView_GetHotItem function but that only appears to return the index of the item that the mouse is hovering over, however, this is the kind of thing i'm looking for.

Try _GUICtrlListView_GetSelectedCount()

When the words fail... music speaks

Share this post


Link to post
Share on other sites

That wasn't quite the right function but it was right next to _GUICtrlListView_GetSelectedIndices which is exactly what I needed. Thanks for the help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0