h1(#wxmenuevent). Wx::MenuEvent This class is used to represent a variety of menu-related events such as highlighting, opening and closing items. Note that the commonest event to be handled from menus - that of actually choosing a menu item - is not a MenuEvent but a "CommandEvent":commandevent.html, captured by using @evt_menu@. The default handler for @evt_menu_highlight@ displays help text in the first field of the status bar. h2. Derived from "Event":event.html "Object":object.html h2. Event table macros To process a menu event, use these event handler macros to direct input to member functions that take a MenuEvent argument. They can only be processed by a menubar's frame. |*evt_menu_open() { | event | ... }*|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).| |*evt_menu_close() { | event | ... }*|A menu has been just closed.| |*evt_menu_highlight(id) { | event | ... }*|The menu item with thespecified id has been highlighted: used to show help prompts in the status barby "Frame":frame.html| |*evt_menu_highlight_all() { | event | ... }*|A menu item has beenhighlighted, i.e. the currently selected menu item has changed.| h2. See also "Command events":commandevent.html, "Event handling overview":eventhandlingoverview.html