added EVT_MENU_OPEN and EVT_MENU_CLOSE events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,6 +47,9 @@ characters into it than the limit previosuly set with
|
||||
which is generated by a menu item.}
|
||||
\twocolitem{{\bf EVT\_MENU\_RANGE(id1, id2, func)}}{Process a wxEVT\_COMMAND\_MENU\_RANGE command,
|
||||
which is generated by a range of menu items.}
|
||||
\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{Process the event generated
|
||||
when the user has requested a popup menu to appear by pressing a special
|
||||
keyboard key (under Windows) or by right clicking the mouse.}
|
||||
\twocolitem{{\bf EVT\_SLIDER(id, func)}}{Process a wxEVT\_COMMAND\_SLIDER\_UPDATED command,
|
||||
which is generated by a wxSlider control.}
|
||||
\twocolitem{{\bf EVT\_RADIOBOX(id, func)}}{Process a wxEVT\_COMMAND\_RADIOBOX\_SELECTED command,
|
||||
|
@@ -19,21 +19,19 @@ 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
|
||||
when a menu is showing). Windows only; not yet implemented.}
|
||||
\twocolitem{{\bf EVT\_MENU\_INIT(func)}}{Process a wxEVT\_MENU\_INIT event (the menu
|
||||
is about to pop up). Windows only; not yet implemented.}
|
||||
\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT(func)}}{Process a wxEVT\_MENU\_HIGHLIGHT event (a menu
|
||||
item is being highlighted). Windows only; not yet implemented.}
|
||||
\twocolitem{{\bf EVT\_POPUP\_MENU(func)}}{Process a wxEVT\_POPUP\_MENU event (a menu
|
||||
item is being highlighted). Windows only; not yet implemented.}
|
||||
\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{Process a wxEVT\_CONTEXT\_MENU event (F1 has
|
||||
been pressed with a particular menu item highlighted). Windows only; not yet implemented.}
|
||||
\twocolitem{{\bf EVT\_MENU\_OPEN(func)}}{A menu is about to be opened.}
|
||||
\twocolitem{{\bf EVT\_MENU\_CLOSE(func)}}{A menu has been just closed.}
|
||||
\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT(id, func)}}{The menu item with the
|
||||
speicifed id has been highlighted: used to show help prompts in the status bar
|
||||
by \helpref{wxFrame}{wxframe}}
|
||||
\twocolitem{{\bf EVT\_MENU\_HIGHLIGHT\_ALL(func)}}{A menu item has been
|
||||
highlighted, i.e. the currently selected menu item has changed.}
|
||||
\end{twocollist}%
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxWindow::OnMenuHighlight}{wxwindowonmenuhighlight}, \helpref{Event handling overview}{eventhandlingoverview}
|
||||
\helpref{Command events}{wxcommandevent},\\
|
||||
\helpref{Event handling overview}{eventhandlingoverview}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
@@ -53,5 +51,16 @@ The relevant menu identifier.
|
||||
|
||||
\constfunc{int}{GetMenuId}{\void}
|
||||
|
||||
Returns the menu identifier associated with the event.
|
||||
Returns the menu identifier associated with the event. This method should be
|
||||
only 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 be only used with the {\tt OPEN} and {\tt CLOSE} events.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user