1 \section{\class{wxContextMenuEvent
}}\label{wxcontextmenuevent
}
3 This class is used for context menu events, sent to give
4 the application a chance to show a context (popup) menu.
6 \wxheading{Derived from
}
8 \helpref{wxCommandEvent
}{wxcommandevent
}\\
9 \helpref{wxEvent
}{wxevent
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
18 \helpref{wxCore
}{librarieslist
}
20 \wxheading{Event table macros
}
22 To process a menu event, use these event handler macros to direct input to member
23 functions that take a wxContextMenuEvent argument.
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.
}
32 \helpref{Command events
}{wxcommandevent
},\\
33 \helpref{Event handling overview
}{eventhandlingoverview
}
35 \latexignore{\rtfignore{\wxheading{Members
}}}
37 \membersection{wxContextMenuEvent::wxContextMenuEvent
}\label{wxcontextmenueventctor
}
39 \func{}{wxContextMenuEvent
}{\param{WXTYPE
}{id =
0},
\param{int
}{id =
0},
\param{const wxPoint\&
}{ pos=wxDefaultPosition
}}
43 \membersection{wxContextMenuEvent::GetPosition
}\label{wxcontextmenueventgetposition
}
45 \constfunc{wxPoint
}{GetPosition
}{\void}
47 Returns the position at which the menu should be shown.
49 \membersection{wxContextMenuEvent::SetPosition
}\label{wxcontextmenueventsetposition
}
51 \func{void
}{SetPosition
}{\param{const wxPoint\&
}{ point
}}
53 Sets the position at which the menu should be shown.