.\" This is a wxWidgets manpage page generated from the XML docs .TH wxMenuEvent 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxMenuEvent \- A menu event .SH DESCRIPTION This class is used for a variety of menu-related events. Note that these do not include menu command events, which are handled using wxCommandEvent objects. The default handler for wxEVT_MENU_HIGHLIGHT displays help text in the first field of the status bar. .SH "PARENTS" wxEvent wxObject .SH "INCLUDE FILES" wx/event.h .SH MEMBERS .SS wxMenuEvent (WXTYPE id = 0int id = 0wxMenu* menu = NULL) Constructor. .SS wxMenu * GetMenu () Returns the menu which is being opened or closed. This method should only be used with the OPEN and CLOSE events. .SS int GetMenuId () Returns the menu identifier associated with the event. This method should be only used with the HIGHLIGHT events. .SS bool IsPopup () Returns true if the menu which is being opened or closed is a popup menu, false if it is a normal one. This method should only be used with the OPEN and CLOSE events. .SH EVENTS .SS EVT_MENU_OPEN(func) A menu is about to be opened. On Windows, this is only sent once for each navigation of the menubar (up until all menus have closed). .SS EVT_MENU_CLOSE(func) A menu has been just closed. .SS EVT_MENU_HIGHLIGHT(id, func) The menu item with the specified id has been highlighted: used to show help prompts in the status bar by wxFrame .SS EVT_MENU_HIGHLIGHT_ALL(func) A menu item has been highlighted, i.e. the currently selected menu item has changed. .SH "SEE ALSO" wxEvent wxObject Command events , Event handling overview .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.