1 \section{\class{wxMenuEvent
}}\label{wxmenuevent
}
3 This class is used for a variety of menu-related events. Note that
4 these do not include menu command events.
6 \wxheading{Derived from
}
8 \helpref{wxEvent
}{wxevent
}\\
9 \helpref{wxObject
}{wxobject
}
11 \wxheading{Include files
}
15 \wxheading{Event table macros
}
17 To process a menu event, use these event handler macros to direct input to member
18 functions that take a wxMenuEvent argument.
21 \begin{twocollist
}\itemsep=
0pt
22 \twocolitem{{\bf EVT
\_MENU\_CHAR(func)
}}{Process a wxEVT
\_MENU\_CHAR event (a keypress
23 when a menu is showing). Windows only; not yet implemented.
}
24 \twocolitem{{\bf EVT
\_MENU\_INIT(func)
}}{Process a wxEVT
\_MENU\_INIT event (the menu
25 is about to pop up). Windows only; not yet implemented.
}
26 \twocolitem{{\bf EVT
\_MENU\_HIGHLIGHT(func)
}}{Process a wxEVT
\_MENU\_HIGHLIGHT event (a menu
27 item is being highlighted). Windows only; not yet implemented.
}
28 \twocolitem{{\bf EVT
\_POPUP\_MENU(func)
}}{Process a wxEVT
\_POPUP\_MENU event (a menu
29 item is being highlighted). Windows only; not yet implemented.
}
30 \twocolitem{{\bf EVT
\_CONTEXT\_MENU(func)
}}{Process a wxEVT
\_CONTEXT\_MENU event (F1 has
31 been pressed with a particular menu item highlighted). Windows only; not yet implemented.
}
36 \helpref{wxWindow::OnMenuHighlight
}{wxwindowonmenuhighlight
},
\helpref{Event handling overview
}{eventhandlingoverview
}
38 \latexignore{\rtfignore{\wxheading{Members
}}}
40 \membersection{wxMenuEvent::wxMenuEvent
}
42 \func{}{wxMenuEvent
}{\param{WXTYPE
}{id =
0},
\param{int
}{id =
0},
\param{wxDC*
}{dc = NULL
}}
46 \membersection{wxMenuEvent::m
\_menuId}
48 \member{int
}{m
\_menuId}
50 The relevant menu identifier.
52 \membersection{wxMenuEvent::GetMenuId
}\label{wxmenueventgetmenuid
}
54 \constfunc{int
}{GetMenuId
}{\void}
56 Returns the menu identifier associated with the event.