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
This commit is contained in:
Francesco Montorsi
2008-12-08 23:22:41 +00:00
parent b476cde6d5
commit 558e89e74d

View File

@@ -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}