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
How to put the curser in editbox automatically
Moderators: CEGUI MVP, CEGUI Team
-
- Quite a regular
- Posts: 47
- Joined: Fri May 28, 2010 04:40
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: How to put the curser in editbox automatically
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
I suggest that maybe you are doing something wrong
CE
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 15 guests