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\_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
25 speicifed id has been highlighted: used to show help prompts in the status bar
26 by
\helpref{wxFrame
}{wxframe
}}
27 \twocolitem{{\bf EVT
\_MENU\_HIGHLIGHT\_ALL(func)
}}{A menu item has been
28 highlighted, i.e. the currently selected menu item has changed.
}
33 \helpref{Command events
}{wxcommandevent
},\\
34 \helpref{Event handling overview
}{eventhandlingoverview
}
36 \latexignore{\rtfignore{\wxheading{Members
}}}
38 \membersection{wxMenuEvent::wxMenuEvent
}
40 \func{}{wxMenuEvent
}{\param{WXTYPE
}{id =
0},
\param{int
}{id =
0},
\param{wxDC*
}{dc = NULL
}}
44 \membersection{wxMenuEvent::m
\_menuId}
46 \member{int
}{m
\_menuId}
48 The relevant menu identifier.
50 \membersection{wxMenuEvent::GetMenuId
}\label{wxmenueventgetmenuid
}
52 \constfunc{int
}{GetMenuId
}{\void}
54 Returns the menu identifier associated with the event. This method should be
55 only used with the
{\tt HIGHLIGHT
} events.
57 \membersection{wxMenuEvent::IsPopup
}\label{wxmenueventispopup
}
59 \constfunc{bool
}{IsPopup
}{\void}
61 Returns
{\tt TRUE
} if the menu which is being opened or closed is a popup menu,
62 {\tt FALSE
} if it is a normal one.
64 This method should be only used with the
{\tt OPEN
} and
{\tt CLOSE
} events.