| View previous topic :: View next topic |
| Author |
Message |
Mountie
Joined: 30 Oct 2007 Posts: 20
|
Posted: Fri Jun 20, 2008 1:59 pm Post subject: auto leaving a gui add edit control |
|
|
Is it possible to leave a control once the maxium number of characters
have been input for the control without having to press the tab key?
I have a line in a script as follows:
Gui, Add, Edit, vLocation Limit1
The issue is that the tab key needs to be pressed to leave the control
after the single charcter has been input. In this case, it would be more
desirable to just go to the next field after the single character has been
input.
Thanks. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Jun 20, 2008 3:53 pm Post subject: |
|
|
you could ad a g-label option to the edit, and that subroutine would read the field, and if it is filled with the required number of chars (1 in this case) then set focus on the next control
GuiControlGet will et you get the text
GuiControl will let you move the focus. _________________
(Common Answers) |
|
| Back to top |
|
 |
|