Sign in to follow this  
Followers 0
SkiFreak

Need help with a listbox

5 posts in this topic

I have looked though the forum and help but have been unable to find a way to get a response out of a listbox when using the arrow keys.

I currently have an "on click" event that returns the row when I use the mouse but if I use the arrow keys to select a row I cannot get a response.

Surely this is possible and I hope that one of you out there can tell me how to do this.

On a side note; I have a second question about listboxes.

Is there a way to identify the column in a listbox (not the index of the row). I can sort a column by clicking on the row header (as per the example in help) but how can I trigger this from a button?

Any help appreciated.

Share this post


Link to post
Share on other sites



ListBox or ListView?

Sorry, a ListView control.

Share this post


Link to post
Share on other sites

Probably should have seen this earlier as I am already using your snippet to do the "on_click" function in my ListView.

I did however have to put in a little bit of "loop" handling because I was getting multiple $LVN_ITEMCHANGED events every time the GUI was initiated or I sneezed too close to it. :lmao:

Thanks.

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