From 558e89e74dc107e9d95b01cea5ba4bc2b9fad046 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 8 Dec 2008 23:22:41 +0000 Subject: [PATCH] add an event table; even if wxMenuItem is not a widget, it emits events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/menuitem.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index 3b6d3b4552..da92070140 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -17,6 +17,29 @@ Also please note that the methods related to fonts and bitmaps are currently only implemented for Windows, Mac and GTK+. + @beginEventTable{wxCommandEvent,wxMenuEvent} + @event{EVT_MENU(id, func)} + Process a @c wxEVT_COMMAND_MENU_SELECTED command, which is generated by a menu item. + This type of event is sent as wxCommandEvent. + @event{EVT_MENU_RANGE(id1, id2, func)} + Process a @c wxEVT_COMMAND_MENU_RANGE command, which is generated by a range of menu items. + This type of event is sent as wxCommandEvent. + @event{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). + This type of event is sent as wxMenuEvent. + @event{EVT_MENU_CLOSE(func)} + A menu has been just closed. + This type of event is sent as wxMenuEvent. + @event{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 + This type of event is sent as wxMenuEvent. + @event{EVT_MENU_HIGHLIGHT_ALL(func)} + A menu item has been highlighted, i.e. the currently selected menu item has changed. + This type of event is sent as wxMenuEvent. + @endEventTable + @library{wxcore} @category{menus} -- 2.45.2