hi,
my situation: i want to have a modal dialog, so after creating and showing the window, ignore all input on the main window. i want to "activate" the main window after closing the little window. how do i register the closing of the little window? can i get it through the irr::IEventReceiver? i so then how?
thanx in advance for any help
registering closing of irr::gui:IGUIWindow
-
rayaken
can't be that difficult
i can't believe that it is really that difficult, but perhaps my previous post was a bit confusing so here again my problem in some simple words:
i created a irr::gui::IGUIWindow and i want to know when the user closes this window?
please, i need some help on this one. don't let my "project" fail in such an early state. =(
i created a irr::gui::IGUIWindow and i want to know when the user closes this window?
please, i need some help on this one. don't let my "project" fail in such an early state. =(
Have you set up a receiver for events? If so, in your receiver object, check if the event type is a gui event (event.EventType == EET_GUI_EVENT). If it is you can access event.GUIEvent.Caller to get a pointer to the GUI element that created the event, and event.GUIEvent.EventType to get the ID of the actual event.
Here is a link to the documentation detailing the event.GUIEvent.EventType possibilities:
http://irrlicht.sourceforge.net/docu/na ... i.html#a55
Here is a link to the documentation detailing the event.GUIEvent.EventType possibilities:
http://irrlicht.sourceforge.net/docu/na ... i.html#a55
-
rayaken