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);
}
Code: Select all
this can be cancelled by absorbing the 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 :/