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.
|