OnClose event

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
sader
Posts: 28
Joined: Sat Sep 29, 2007 1:38 pm

OnClose event

Post by sader »

How to use this event EGET_ELEMENT_CLOSED to keep window alive I mean make it invisible but not destroy

I tryed like that

Code: Select all

if(g_Events.guiWindowClosed(1000))
{
   menuWnd->setVisible(false); //app crashes  becose instance allredy is destroyed (I gues so:))
   g_Events.setTrackGUI(false);
 }
thre's comment in "IEventReceiver.h" above EGET_ELEMENT_CLOSED

Code: Select all

this can be cancelled by absorbing the event.
but can't find out how to use it and absorb that event.

I have serach forum but look's that topic's where created while there wasn't event EGET_ELEMENT_CLOSED, when I tryed serach with keyword EGET_ELEMENT_CLOSED I get only one result no usefull info :/
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Not sure if this will help here, but events can be absorbed by returning true in the eventreceiver.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply