galpha Posted May 18, 2004 Share Posted May 18, 2004 Me again Now I got an edit box created, I want it so that when u hit CTRL-A , it select all the things you typed in. So far I got: Func EnableHotKeys() HotKeySet("^a", "SelectAll") EndFunc SelectAll would be the function name to call but what I put in this function, I got no idea what to write in it. help plz . Link to comment Share on other sites More sharing options...
Valik Posted May 18, 2004 Share Posted May 18, 2004 EM_SETSEL comes to mind. Sending that message with 0 as WPARAM and -1 as LPARAM highlights the entire string. Something like: Global $EM_SETSEL = 0x00B1 GuiSendMsg($yourControl, $EM_SETSEL, 0, -1) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now