X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..45fcbf3b7a7c9cfd96e67278e4eaa12e8e015651:/docs/latex/wx/upduievt.tex diff --git a/docs/latex/wx/upduievt.tex b/docs/latex/wx/upduievt.tex index 2423083c1d..e602979bd5 100644 --- a/docs/latex/wx/upduievt.tex +++ b/docs/latex/wx/upduievt.tex @@ -8,9 +8,13 @@ to give an application the chance to update various user interface elements. \helpref{wxEvent}{wxevent}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Event table macros} -To process a menu event, use these event handler macros to direct input to member +To process an update event, use these event handler macros to direct input to member functions that take a wxUpdateUIEvent argument. \twocolwidtha{7cm} @@ -36,6 +40,10 @@ Instead of directly manipulating the menu or button, you call functions in the e object, such as \helpref{wxUpdateUIEvent::Check}{wxupdateuieventcheck}. wxWindows will determine whether such a call has been made, and which UI element to update. +These events will work for popup menus as well as menubars. Just before a menu is popped +up, \helpref{wxMenu::UpdateUI}{wxmenuupdateui} is called to process any UI events for +the window that owns the menu. + \wxheading{See also} \helpref{Event handling overview}{eventhandlingoverview}