⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menuevt.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
\section{\class{wxMenuEvent}}\label{wxmenuevent}This class is used for a variety of menu-related events. Note thatthese do not include menu command events, which arehandled using \helpref{wxCommandEvent}{wxcommandevent} objects.The default handler for wxEVT\_MENU\_HIGHLIGHT displays helptext in the first field of the status bar.\wxheading{Derived from}\helpref{wxEvent}{wxevent}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/event.h>\wxheading{Event table macros}To process a menu event, use these event handler macros to direct input to memberfunctions that take a wxMenuEvent argument. They can only be processed bya menubar's frame.\twocolwidtha{7cm}\begin{twocollist}\itemsep=0pt\twocolitem{{\bf 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).}\twocolitem{{\bf EVT\_MENU\_CLOSE(func)}}{A menu has been just closed.}\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT(id, func)}}{The menu item with thespecified id has been highlighted: used to show help prompts in the status barby \helpref{wxFrame}{wxframe}}\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT\_ALL(func)}}{A menu item has beenhighlighted, i.e. the currently selected menu item has changed.}\end{twocollist}\wxheading{See also}\helpref{Command events}{wxcommandevent},\\\helpref{Event handling overview}{eventhandlingoverview}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxMenuEvent::wxMenuEvent}\label{wxmenueventctor}\func{}{wxMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{wxMenu* }{menu = NULL}}Constructor.\membersection{wxMenuEvent::GetMenu}\label{wxmenueventgetmenu}\constfunc{wxMenu *}{GetMenu}{\void}Returns the menu which is being opened or closed. This method should only beused with the \texttt{OPEN} and \texttt{CLOSE} events and even for them thereturned pointer may be \NULL in some ports.\membersection{wxMenuEvent::GetMenuId}\label{wxmenueventgetmenuid}\constfunc{int}{GetMenuId}{\void}Returns the menu identifier associated with the event. This method should beonly used with the {\tt HIGHLIGHT} events.\membersection{wxMenuEvent::IsPopup}\label{wxmenueventispopup}\constfunc{bool}{IsPopup}{\void}Returns {\tt true} if the menu which is being opened or closed is a popup menu, {\tt false} if it is a normal one.This method should only be used with the {\tt OPEN} and {\tt CLOSE} events.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -