]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/cntxtevt.tex
[ 1573138 ] small docs corrections
[wxWidgets.git] / docs / latex / wx / cntxtevt.tex
... / ...
CommitLineData
1\section{\class{wxContextMenuEvent}}\label{wxcontextmenuevent}
2
3This class is used for context menu events, sent to give
4the application a chance to show a context (popup) menu.
5
6\wxheading{Derived from}
7
8\helpref{wxCommandEvent}{wxcommandevent}\\
9\helpref{wxEvent}{wxevent}\\
10\helpref{wxObject}{wxobject}
11
12\wxheading{Include files}
13
14<wx/event.h>
15
16\wxheading{Event table macros}
17
18To process a menu event, use these event handler macros to direct input to member
19functions that take a wxContextMenuEvent argument.
20
21\twocolwidtha{7cm}
22\begin{twocollist}\itemsep=0pt
23\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{A right click (or other context menu command depending on platform) has been detected.}
24\end{twocollist}
25
26\wxheading{See also}
27
28\helpref{Command events}{wxcommandevent},\\
29\helpref{Event handling overview}{eventhandlingoverview}
30
31\latexignore{\rtfignore{\wxheading{Members}}}
32
33\membersection{wxContextMenuEvent::wxContextMenuEvent}\label{wxcontextmenueventctor}
34
35\func{}{wxContextMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{const wxPoint\&}{ pos=wxDefaultPosition}}
36
37Constructor.
38
39\membersection{wxContextMenuEvent::GetPosition}\label{wxcontextmenueventgetposition}
40
41\constfunc{wxPoint}{GetPosition}{\void}
42
43Returns the position at which the menu should be shown.
44
45\membersection{wxContextMenuEvent::SetPosition}\label{wxcontextmenueventsetposition}
46
47\func{void}{SetPosition}{\param{const wxPoint\&}{ point}}
48
49Sets the position at which the menu should be shown.
50