I try to subscibe my event handler funtion to cegui with this code:
winMgr->getSingleton().getWindow("Demo7/Window1/Quit")->subscribeEvent(CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber(&CEGUITest::CEGUIExit,this));
At this line the application crashes. I use the source of Ceguitest. In
the support forum I finded a way to solve the problem (maybe):
(mouse->GetLastButton(0))
{
using namespace CEGUI;
WindowManager::getSingleton().getWindow("Demo7/Window1/Quit")->
subscribeEvent(PushButton::EventClicked, Event::Subscriber(&TTViewer::HandleQuit, this));
}
But the CS manual forbids this..
What can I do?
Thanks for any help!
- [CsMain] CEGUI event subscription problems Nagy József
- Re: [CsMain] CEGUI event subscription problems Seth Yastrov
