1998-05-20 14:25:30 +00:00
|
|
|
\section{\class{wxMenuEvent}}\label{wxmenuevent}
|
|
|
|
|
|
|
|
This class is used for a variety of menu-related events. Note that
|
|
|
|
these do not include menu command events.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxEvent}{wxevent}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/event.h>
|
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
\wxheading{Event table macros}
|
|
|
|
|
|
|
|
To process a menu event, use these event handler macros to direct input to member
|
|
|
|
functions that take a wxMenuEvent argument.
|
|
|
|
|
|
|
|
\twocolwidtha{7cm}
|
|
|
|
\begin{twocollist}\itemsep=0pt
|
|
|
|
\twocolitem{{\bf EVT\_MENU\_CHAR(func)}}{Process a wxEVT\_MENU\_CHAR event (a keypress
|
1999-02-09 21:22:58 +00:00
|
|
|
when a menu is showing). Windows only; not yet implemented.}
|
1998-05-20 14:25:30 +00:00
|
|
|
\twocolitem{{\bf EVT\_MENU\_INIT(func)}}{Process a wxEVT\_MENU\_INIT event (the menu
|
1999-02-09 21:22:58 +00:00
|
|
|
is about to pop up). Windows only; not yet implemented.}
|
1998-05-20 14:25:30 +00:00
|
|
|
\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT(func)}}{Process a wxEVT\_MENU\_HIGHLIGHT event (a menu
|
1999-02-09 21:22:58 +00:00
|
|
|
item is being highlighted). Windows only; not yet implemented.}
|
1998-05-20 14:25:30 +00:00
|
|
|
\twocolitem{{\bf EVT\_POPUP\_MENU(func)}}{Process a wxEVT\_POPUP\_MENU event (a menu
|
1999-02-09 21:22:58 +00:00
|
|
|
item is being highlighted). Windows only; not yet implemented.}
|
1998-05-20 14:25:30 +00:00
|
|
|
\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{Process a wxEVT\_CONTEXT\_MENU event (F1 has
|
1999-02-09 21:22:58 +00:00
|
|
|
been pressed with a particular menu item highlighted). Windows only; not yet implemented.}
|
1998-05-20 14:25:30 +00:00
|
|
|
\end{twocollist}%
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxWindow::OnMenuHighlight}{wxwindowonmenuhighlight}, \helpref{Event handling overview}{eventhandlingoverview}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxMenuEvent::wxMenuEvent}
|
|
|
|
|
|
|
|
\func{}{wxMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{wxDC* }{dc = NULL}}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\membersection{wxMenuEvent::m\_menuId}
|
|
|
|
|
|
|
|
\member{int}{m\_menuId}
|
|
|
|
|
|
|
|
The relevant menu identifier.
|
|
|
|
|
|
|
|
\membersection{wxMenuEvent::GetMenuId}\label{wxmenueventgetmenuid}
|
|
|
|
|
|
|
|
\constfunc{int}{GetMenuId}{\void}
|
|
|
|
|
|
|
|
Returns the menu identifier associated with the event.
|
|
|
|
|