How to put the curser in editbox automatically

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Playerdark
Quite a regular
Quite a regular
Posts: 47
Joined: Fri May 28, 2010 04:40

How to put the curser in editbox automatically

Postby Playerdark » Sun Jun 03, 2012 04:48

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

User avatar
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

Postby CrazyEddie » Sun Jun 03, 2012 08:23

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


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 13 guests