Page 2 of 2

Posted: Tue May 10, 2011 1:11 pm
by Virror
Using "irrGui->getRootGUIElement()->bringToFront(contextMenu);" worked like a charm, thatsk alot!

Only issue left now is how to get events from the sub-menu of the contextMenu.

Posted: Tue May 10, 2011 1:14 pm
by CuteAlien
You do:

Code: Select all

if(event.GUIEvent.Caller == contextMenu) 
Which is not correct for the submenu - the caller is in this case the pointer to the submenu.

Posted: Tue May 10, 2011 1:33 pm
by Virror
Ahh, so the submenu counts as a different GUI, that explains it ; )

Code: Select all

if(event.GUIEvent.Caller == contextMenu->getSubMenu(1))
Now everything works as intended, thatnx alot for the help : D
Hopefully i have something to post on the projects page in a while ; )