Menu/toolbar event handling now tries the window with the focus first.

wxTextCtrl processes cut, copy, paste, undo, redo commands and UI updates
automatically.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-04-07 21:33:22 +00:00
parent b59ff3c9c8
commit e702ff0f08
38 changed files with 617 additions and 36 deletions

View File

@@ -383,7 +383,15 @@ A menu bar is a series of menus accessible from the top of a frame.
\wxheading{Event handling}
To respond to a menu selection, provide a handler for EVT\_MENU, in the frame
that contains the menu bar.
that contains the menu bar. If you have a toolbar which uses the same identifiers
as your EVT\_MENU entries, events from the toolbar will also be processed by your
EVT\_MENU event handlers.
Note that menu commands (and UI update events for menus) are first sent to
the focus window within the frame. If no window within the frame has the focus,
then the events are sent directly to the frame. This allows command and UI update
handling to be processed by specific windows and controls, and not necessarily
by the application frame.
\wxheading{See also}