]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/menuevt.tex
added ra key methods 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
954b8ae6
JS
11\wxheading{Include files}
12
13<wx/event.h>
14
a660d684
KB
15\wxheading{Event table macros}
16
17To process a menu event, use these event handler macros to direct input to member
18functions that take a wxMenuEvent argument.
19
20\twocolwidtha{7cm}
21\begin{twocollist}\itemsep=0pt
ccef86c7
VZ
22\twocolitem{{\bf EVT\_MENU\_OPEN(func)}}{A menu is about to be opened.}
23\twocolitem{{\bf EVT\_MENU\_CLOSE(func)}}{A menu has been just closed.}
24\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT(id, func)}}{The menu item with the
25speicifed id has been highlighted: used to show help prompts in the status bar
26by \helpref{wxFrame}{wxframe}}
27\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT\_ALL(func)}}{A menu item has been
28highlighted, i.e. the currently selected menu item has changed.}
a660d684
KB
29\end{twocollist}%
30
31\wxheading{See also}
32
ccef86c7
VZ
33\helpref{Command events}{wxcommandevent},\\
34\helpref{Event handling overview}{eventhandlingoverview}
a660d684
KB
35
36\latexignore{\rtfignore{\wxheading{Members}}}
37
38\membersection{wxMenuEvent::wxMenuEvent}
39
40\func{}{wxMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{wxDC* }{dc = NULL}}
41
42Constructor.
43
44\membersection{wxMenuEvent::m\_menuId}
45
46\member{int}{m\_menuId}
47
48The relevant menu identifier.
49
50\membersection{wxMenuEvent::GetMenuId}\label{wxmenueventgetmenuid}
51
52\constfunc{int}{GetMenuId}{\void}
53
ccef86c7
VZ
54Returns the menu identifier associated with the event. This method should be
55only used with the {\tt HIGHLIGHT} events.
56
57\membersection{wxMenuEvent::IsPopup}\label{wxmenueventispopup}
58
59\constfunc{bool}{IsPopup}{\void}
60
61Returns {\tt TRUE} if the menu which is being opened or closed is a popup menu,
62{\tt FALSE} if it is a normal one.
63
64This method should be only used with the {\tt OPEN} and {\tt CLOSE} events.
65
a660d684 66