Jump to content

Recommended Posts

Posted

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.

Posted

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()
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...