tried to figure out a how to catch that event - but without a solution.
Has this event been forgoten ?
IGUIWindow * start = ui->addWindow(
position,
true, // modal
0, // window title
0, // parent,
UI_WIN); // ID;
bool MyEventReceiver::OnEvent(SEvent event)
{
switch (event.EventType)
{
case EET_GUI_EVENT:
...
I could not get an event here ...
my error ?
IGUIWindow - how to catch the "close" event ??
Not your error. The window gets simply remove when you click the close button. You can get the button with getCloseButton() but this doesn't really help (you can disable the button with it.)
Yu'll have to modify the engine. There's a patch available here:
http://parsys.informatik.uni-oldenburg. ... /irrlicht/
It's the "GUICloseHandler.patch" one. Haven't tested it though.
Yu'll have to modify the engine. There's a patch available here:
http://parsys.informatik.uni-oldenburg. ... /irrlicht/
It's the "GUICloseHandler.patch" one. Haven't tested it though.
It is like it is. And because it is like it is, things are like they are.