Page 1 of 1

How to set a editbox as keybord focus manually?

Posted: Thu Oct 20, 2005 06:28
by thejinchao
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"?

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

Posted: Thu Oct 20, 2005 16:42
by lindquist

Code: Select all

wnd->activate();