Sign in to follow this  
Followers 0
WhyTea

How to read line in GUI List and Edit Control?

3 posts in this topic

I have created List and Edit controls in a Form. Now I have populated the List and Edit controls with lines of text, how do I read the line when a user double click on it? How do I read a word when a use double click on one in Edit?

/Why Tea

Share this post


Link to post
Share on other sites



I managed to find a way to read the focused line in the Listbox in one of the threads by doing the following:

GUIRegisterMsg($WM_COMMAND, "WM_COMMAND_LIST")

Func WM_COMMAND_LIST($hWnd, $iMsg, $iwParam, $ilParam)

...

With that I could detect double click and enter key in the listBox. But I failed to do the same thing for the EditBox (created with GUICtrlCreateEdit()) in the same Form. I would like to handle double click in the EditBox when a word is selected or highlighted. Is there a way to do it?

/Why Tea

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