]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/menuevt.tex
a bit more docs
[wxWidgets.git] / docs / latex / wx / menuevt.tex
CommitLineData
a660d684
KB
1\section{\class{wxMenuEvent}}\label{wxmenuevent}
2
3This class is used for a variety of menu-related events. Note that
4these do not include menu command events.
5
6\wxheading{Derived from}
7
8\helpref{wxEvent}{wxevent}\\
9\helpref{wxObject}{wxobject}
10
11\wxheading{Event table macros}
12
13To process a menu event, use these event handler macros to direct input to member
14functions that take a wxMenuEvent argument.
15
16\twocolwidtha{7cm}
17\begin{twocollist}\itemsep=0pt
18\twocolitem{{\bf EVT\_MENU\_CHAR(func)}}{Process a wxEVT\_MENU\_CHAR event (a keypress
19when a menu is showing). Windows only. TODO}
20\twocolitem{{\bf EVT\_MENU\_INIT(func)}}{Process a wxEVT\_MENU\_INIT event (the menu
21is about to pop up). Windows only. TODO}
22\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT(func)}}{Process a wxEVT\_MENU\_HIGHLIGHT event (a menu
23item is being highlighted). Windows only.}
24\twocolitem{{\bf EVT\_POPUP\_MENU(func)}}{Process a wxEVT\_POPUP\_MENU event (a menu
25item is being highlighted). Windows only. TODO}
26\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{Process a wxEVT\_CONTEXT\_MENU event (F1 has
27been pressed with a particular menu item highlighted). Windows only. TODO}
28\end{twocollist}%
29
30\wxheading{See also}
31
32\helpref{wxWindow::OnMenuHighlight}{wxwindowonmenuhighlight}, \helpref{Event handling overview}{eventhandlingoverview}
33
34\latexignore{\rtfignore{\wxheading{Members}}}
35
36\membersection{wxMenuEvent::wxMenuEvent}
37
38\func{}{wxMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{wxDC* }{dc = NULL}}
39
40Constructor.
41
42\membersection{wxMenuEvent::m\_menuId}
43
44\member{int}{m\_menuId}
45
46The relevant menu identifier.
47
48\membersection{wxMenuEvent::GetMenuId}\label{wxmenueventgetmenuid}
49
50\constfunc{int}{GetMenuId}{\void}
51
52Returns the menu identifier associated with the event.
53