wxMenuEventThis 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. 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. They can only be processed by a menubar's frame.
See also
Command events, Members
wxMenuEvent::wxMenuEvent
wxMenuEvent::wxMenuEventwxMenuEvent(WXTYPE id = 0, int id = 0, wxMenu* menu = NULL) Constructor.
wxMenuEvent::GetMenuwxMenu * GetMenu() const Returns the menu which is being opened or closed. This method should only be used with the OPEN and CLOSE events and even for them the returned pointer may be NULL in some ports.
wxMenuEvent::GetMenuIdint GetMenuId() const Returns the menu identifier associated with the event. This method should be only used with the HIGHLIGHT events.
wxMenuEvent::IsPopupbool IsPopup() const 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.
|