This class is used for a variety of menu-related events. Note that these do not include menu command events.
Derived from
Include files
<wx/event.h>
Event table macros
To process a menu event, use these event handler macros to direct input to member functions that take a wxMenuEvent argument.
EVT_MENU_CHAR(func) | Process a wxEVT_MENU_CHAR event (a keypress when a menu is showing). Windows only; not yet implemented. |
EVT_MENU_INIT(func) | Process a wxEVT_MENU_INIT event (the menu is about to pop up). Windows only; not yet implemented. |
EVT_MENU_HIGHLIGHT(func) | Process a wxEVT_MENU_HIGHLIGHT event (a menu item is being highlighted). Windows only; not yet implemented. |
EVT_POPUP_MENU(func) | Process a wxEVT_POPUP_MENU event (a menu item is being highlighted). Windows only; not yet implemented. |
EVT_CONTEXT_MENU(func) | Process a wxEVT_CONTEXT_MENU event (F1 has been pressed with a particular menu item highlighted). Windows only; not yet implemented. |
wxWindow::OnMenuHighlight, Event handling overview
Members
wxMenuEvent::wxMenuEvent
wxMenuEvent::m_menuId
wxMenuEvent::GetMenuId
wxMenuEvent(WXTYPE id = 0, int id = 0, wxDC* dc = NULL)
Constructor.
int m_menuId
The relevant menu identifier.
int GetMenuId() const
Returns the menu identifier associated with the event.