Jump to content

How to read line in GUI List and Edit Control?


WhyTea
 Share

Recommended Posts

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

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