How to set a editbox as keybord focus manually?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
thejinchao
Just popping in
Just popping in
Posts: 11
Joined: Tue Aug 23, 2005 08:00
Location: Beijing. China
Contact:

How to set a editbox as keybord focus manually?

Postby thejinchao » Thu Oct 20, 2005 06:28

I tried function "Window::captureInput", but it did not work.
:shock:


I found the program returned at this line

Code: Select all

bool Window::captureInput(void)
{
   // we can only capture if we are the active window
   if (!isActive()) {     
      return false;   //<<-------
   }
   ...

So... How can i set a window as "ACTIVE"?
Sorry for my poor english :oops:

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: How to set a editbox as keybord focus manually?

Postby lindquist » Thu Oct 20, 2005 16:42

Code: Select all

wnd->activate();


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests