]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/cntxtevt.tex
remove C++ comment
[wxWidgets.git] / docs / latex / wx / cntxtevt.tex
CommitLineData
5cb1ae8b
JS
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
a7af285d
VZ
16\wxheading{Library}
17
18\helpref{wxCore}{librarieslist}
19
5cb1ae8b
JS
20\wxheading{Event table macros}
21
22To process a menu event, use these event handler macros to direct input to member
23functions that take a wxContextMenuEvent argument.
24
25\twocolwidtha{7cm}
26\begin{twocollist}\itemsep=0pt
27\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{A right click (or other context menu command depending on platform) has been detected.}
28\end{twocollist}
29
30\wxheading{See also}
31
32\helpref{Command events}{wxcommandevent},\\
33\helpref{Event handling overview}{eventhandlingoverview}
34
35\latexignore{\rtfignore{\wxheading{Members}}}
36
37\membersection{wxContextMenuEvent::wxContextMenuEvent}\label{wxcontextmenueventctor}
38
39\func{}{wxContextMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{const wxPoint\&}{ pos=wxDefaultPosition}}
40
41Constructor.
42
43\membersection{wxContextMenuEvent::GetPosition}\label{wxcontextmenueventgetposition}
44
45\constfunc{wxPoint}{GetPosition}{\void}
46
47Returns the position at which the menu should be shown.
48
49\membersection{wxContextMenuEvent::SetPosition}\label{wxcontextmenueventsetposition}
50
51\func{void}{SetPosition}{\param{const wxPoint\&}{ point}}
52
53Sets the position at which the menu should be shown.
54