[fixed]IGUIContextMenu close bug

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Mloren
Posts: 114
Joined: Mon Aug 07, 2006 2:30 am
Location: Australia
Contact:

[fixed]IGUIContextMenu close bug

Post by Mloren »

In IEventReceiver under the EGUI_EVENT_TYPE definition it says:

Code: Select all

//! An element would like to close.
/** Windows and context menus use this event when they would like to close, this can be cancelled by absorbing the event. */
EGET_ELEMENT_CLOSED,
but when an IGUIContextMenu is closed, the EGET_ELEMENT_CLOSED event is never fired. In fact there is no way to detect the closing of an IGUIContextMenu (unless a specific element with its own messaging is chosen from the menu but this isn't always the case, especially since the menu closes if you just click off it).

IGUIContextMenu should fire the EGET_ELEMENT_CLOSED message when it closes.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Ok, thanks for reporting. I'll check it next week (was busy this weekend).
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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

It's fixed now in svn trunk version 3550.
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