Lemures Posted April 22, 2007 Posted April 22, 2007 Maybe I'm missing something completely obvious, but I have a GUI with several Input boxes that you can tab between. I would like it so that when the user tabs to the input box, the text already in the box is automatically highlighted. How do I do this?
PaulIA Posted April 22, 2007 Posted April 22, 2007 Maybe I'm missing something completely obvious, but I have a GUI with several Input boxes that you can tab between. I would like it so that when the user tabs to the input box, the text already in the box is automatically highlighted. How do I do this?You must be doing something wrong. This works just fine: #include <GUIConstants.au3> GUICreate("Test", 400, 300) GUICtrlCreateEdit("Edit 1", 2, 2, 190, 20, 0) GUICtrlCreateEdit("Edit 2", 2, 22, 190, 20, 0) GUISetState() do until GUIGetMsg() = $GUI_EVENT_CLOSE Auto3Lib: A library of over 1200 functions for AutoIt
Lemures Posted April 22, 2007 Author Posted April 22, 2007 You must be doing something wrong. This works just fine: #include <GUIConstants.au3> GUICreate("Test", 400, 300) GUICtrlCreateEdit("Edit 1", 2, 2, 190, 20, 0) GUICtrlCreateEdit("Edit 2", 2, 22, 190, 20, 0) GUISetState() do until GUIGetMsg() = $GUI_EVENT_CLOSE Oh, oops, lol. Man I am stupid. I was setting some values AFTER the thing got focus... time to rewrite a bit. Thanks!
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