How can i register a EventKeyDown to a Editbox?
i have tried with
Code: Select all
bool handleSendButtonKey(const CEGUI::KeyEventArgs& e)
{
.....
}
....
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
wmgr.getWindow("client_lobby\\chat\\editbox")
->subscribeEvent(
CEGUI::Window::EventKeyDown,
CEGUI::Event::Subscriber(&handleSendButtonKey));
but it gives me a compiling error.
2nd question)
How can i redirect all the inputs to a FrameWindow so that all the other widgets cant become inputs for the time the FrameWindow is active (like ShowModal() in delphi)??
Thanks