]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxContextMenuEvent
authorJulian Smart <julian@anthemion.co.uk>
Mon, 14 Feb 2005 15:40:06 +0000 (15:40 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 14 Feb 2005 15:40:06 +0000 (15:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/category.tex
docs/latex/wx/classes.tex
docs/latex/wx/cntxtevt.tex [new file with mode: 0644]
docs/latex/wx/menuevt.tex

index 8a2ae1d4de349ea2ebf697ad16bb2c980f3974bf..39e54c5894ece20b6da83642a35cfdb68886af5c 100644 (file)
@@ -217,6 +217,7 @@ An event object contains information about a specific event. Event handlers
 \twocolitem{\helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent}}{Used to calculate window layout}
 \twocolitem{\helpref{wxCloseEvent}{wxcloseevent}}{A close window or end session event}
 \twocolitem{\helpref{wxCommandEvent}{wxcommandevent}}{An event from a variety of standard controls}
+\twocolitem{\helpref{wxContextMenuEvent}{wxcontextmenuevent}}{An event generated when the user issues a context menu command}
 \twocolitem{\helpref{wxDialUpEvent}{wxdialupevent}}{Event send by \helpref{wxDialUpManager}{wxdialupmanager}}
 \twocolitem{\helpref{wxDropFilesEvent}{wxdropfilesevent}}{A drop files event}
 \twocolitem{\helpref{wxEraseEvent}{wxeraseevent}}{An erase background event}
index 44959e771cecb10ab6ba7ac7a6f72673455dab1e..4987765079f935f50279fd7cd90b819cba4ee175 100644 (file)
@@ -48,6 +48,7 @@
 \input conditn.tex
 \input config.tex
 \input ipcconn.tex
+\input cntxtevt.tex
 \input cshelp.tex
 \input control.tex
 \input ctrlsub.tex
diff --git a/docs/latex/wx/cntxtevt.tex b/docs/latex/wx/cntxtevt.tex
new file mode 100644 (file)
index 0000000..8003df8
--- /dev/null
@@ -0,0 +1,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.
+
index 3b403278f77ee170c541f2e0a1f01bc75025e69f..46f9e208836448f3e05d381db4e91cabe1ea254a 100644 (file)
@@ -19,7 +19,8 @@ text in the first field of the status bar.
 \wxheading{Event table macros}
 
 To process a menu event, use these event handler macros to direct input to member
-functions that take a wxMenuEvent argument.
+functions that take a wxMenuEvent argument. They can only be processed by
+a menubar's frame.
 
 \twocolwidtha{7cm}
 \begin{twocollist}\itemsep=0pt