Page 1 of 1

How to put the curser in editbox automatically

Posted: Sun Jun 03, 2012 04:48
by Playerdark
Hi,

I'm trying to activate an editobox automatically when I slide in the window. I call activate() on it but I still have to click inside the editbox to make the cursor appear and enable typing. I couldn't find any other way to set the input focus to the box. Am I missing something or is it not possible to do this without clicking the box?

Thanks

Re: How to put the curser in editbox automatically

Posted: Sun Jun 03, 2012 08:23
by CrazyEddie
I ran a quick test using the demo7 layout and sample code, calling the activate function in an event handler works for me - the editbox becomes active and I can type into it without needing to click.

I suggest that maybe you are doing something wrong ;)

CE