Set focus on a TextField?

BlitzPlus Forums/BlitzPlus Programming/Set focus on a TextField?

mikek314(Posted 2011) [#1]
I my app, when the user presses a button a new window pops up that has (among other things) a TextField on it into which the user is going to type something. I would like focus to be set automatically on the TextField so that the user doesn't have to position the mouse on it and click once.

Is there a way to do this? Thanks in advance.


Timjo(Posted 2011) [#2]
Use the 'activategadget' command - with your textfield's handle.


mikek314(Posted 2011) [#3]
Perfect! Thanks.