~ubuntu-dev/wxwidgets2.6/upstream-debian

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\section{\class{wxContextMenuEvent}}\label{wxcontextmenuevent}

This class is used for context menu events, sent to give
the application a chance to show a context (popup) menu.

\wxheading{Derived from}

\helpref{wxCommandEvent}{wxcommandevent}\\
\helpref{wxEvent}{wxevent}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/event.h>

\wxheading{Event table macros}

To process a menu event, use these event handler macros to direct input to member
functions that take a wxContextMenuEvent argument.

\twocolwidtha{7cm}
\begin{twocollist}\itemsep=0pt
\twocolitem{{\bf EVT\_CONTEXT\_MENU(func)}}{A right click (or other context menu command depending on platform) has been detected.}
\end{twocollist}

\wxheading{See also}

\helpref{Command events}{wxcommandevent},\\
\helpref{Event handling overview}{eventhandlingoverview}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxContextMenuEvent::wxContextMenuEvent}\label{wxcontextmenueventctor}

\func{}{wxContextMenuEvent}{\param{WXTYPE }{id = 0}, \param{int }{id = 0}, \param{const wxPoint\&}{ pos=wxDefaultPosition}}

Constructor.

\membersection{wxContextMenuEvent::GetPosition}\label{wxcontextmenueventgetposition}

\constfunc{wxPoint}{GetPosition}{\void}

Returns the position at which the menu should be shown.

\membersection{wxContextMenuEvent::SetPosition}\label{wxcontextmenueventsetposition}

\func{void}{SetPosition}{\param{const wxPoint\&}{ point}}

Sets the position at which the menu should be shown.