]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/cntxtevt.tex
added DockFixed() pane option; doc updates
[wxWidgets.git] / docs / latex / wx / cntxtevt.tex
1 \section{\class{wxContextMenuEvent}}\label{wxcontextmenuevent}
2
3 This class is used for context menu events, sent to give
4 the 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{Library}
17
18 \helpref{wxCore}{librarieslist}
19
20 \wxheading{Event table macros}
21
22 To process a menu event, use these event handler macros to direct input to member
23 functions 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
41 Constructor.
42
43 \membersection{wxContextMenuEvent::GetPosition}\label{wxcontextmenueventgetposition}
44
45 \constfunc{wxPoint}{GetPosition}{\void}
46
47 Returns 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
53 Sets the position at which the menu should be shown.
54