addMessageBox test

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
Soldier of infortune
Posts: 29
Joined: Fri Sep 19, 2003 8:36 am

addMessageBox test

Post by Soldier of infortune »

I create a a message box with this function IGUIWindow* irr::gui::IGUIEnvironment::addMessageBox.
So how to test if i click the cancel or ok button ?

thanks.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

You'll get an Event into your event reciever. Should be one of these:
EGET_MESSAGEBOX_YES, EGET_MESSAGEBOX_NO, EGET_MESSAGEBOX_OK,
EGET_MESSAGEBOX_CANCEL (http://irrlicht.sourceforge.net/docu/na ... i.html#a55 )
Soldier of infortune
Posts: 29
Joined: Fri Sep 19, 2003 8:36 am

Post by Soldier of infortune »

Thanks a lot, Niko :D

Sam/Soldier
Post Reply