[SOLVED] Focusing A Widget

nikki

07-05-2009 20:36:22

Hey!

I'm using a Window for my console, and there's an EditBox inside it. I use F4 key to toggle the console (using setVisible()). However, I have to always click in the EditBox to bring it to focus to type the console commands. How can I bring the EditBox into focus in the code, so that I don't have to click every time?

Altren

07-05-2009 20:58:51

MyGUI::InputManager::getInstance().setKeyFocusWidget(your_edit);

nikki

08-05-2009 12:13:07

Thanks! ;)