]> git.saurik.com Git - wxWidgets.git/commitdiff
document wxHelpEvent::Set/GetOrigin()
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Jun 2006 22:05:23 +0000 (22:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Jun 2006 22:05:23 +0000 (22:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/helpevt.tex

index 1fccfc1faa0614cf1218e2096e99f7b68359a96c..90d43d529a8cef21d26f1caa8659fa7e4e2152c5 100644 (file)
@@ -24,6 +24,20 @@ since processing would stop after the first window found.
 
 <wx/event.h>
 
+\wxheading{Help event origin}\label{wxhelpeventorigin}
+
+Use \helpref{wxHelpEvent::GetOrigin}{wxhelpeventgetorigin} to determine the origin of this help event,
+it could be one of the following:
+
+\twocolwidtha{7cm}
+\begin{twocollist}\itemsep=0pt
+\twocolitem{{\bf Origin\_Unknown}}{Unrecognized event source.}
+\twocolitem{{\bf Origin\_Keyboard}}{Event generated by \texttt{F1} key press.}
+\twocolitem{{\bf Origin\_HelpButton}}{Event generated by 
+\helpref{wxContextHelp}{wxcontexthelp} or using the "?" title bur button under
+MS Windows.}
+\end{twocollist}%
+
 \wxheading{Event table macros}
 
 To process an activate event, use these event handler macros to direct input to a member
@@ -50,6 +64,18 @@ function that takes a wxHelpEvent argument.
 
 Constructor.
 
+\membersection{wxHelpEvent::GetOrigin}\label{wxhelpeventgetorigin}
+
+\constfunc{wxHelpEvent::Origin }{GetOrigin}{\void}
+
+Returns the \helpref{origin}{wxhelpeventorigin} of the help event. This allows
+to determine the source of the event and show the appropriate help to the user.
+
+\wxheading{See also}
+
+\helpref{wxHelpEvent::SetOrigin}{wxhelpeventsetorigin}, \helpref{Help event origin}{wxhelpeventorigin}
+
+
 \membersection{wxHelpEvent::GetPosition}\label{wxhelpeventgetposition}
 
 \constfunc{const wxPoint\&}{GetPosition}{\void}
@@ -57,6 +83,17 @@ Constructor.
 Returns the left-click position of the mouse, in screen coordinates. This allows
 the application to position the help appropriately.
 
+\membersection{wxHelpEvent::SetOrigin}\label{wxhelpeventsetorigin}
+
+\func{void}{SetOrigin}{\param{wxHelpEvent::Origin }{origin}}
+
+Set the help event \helpref{origin}{wxhelpeventorigin}.
+
+\wxheading{See also}
+
+\helpref{wxHelpEvent::GetOrigin}{wxhelpeventgetorigin}, \helpref{Help event origin}{wxhelpeventorigin}
+
+
 \membersection{wxHelpEvent::SetPosition}\label{wxhelpeventsetposition}
 
 \func{void}{SetPosition}{\param{const wxPoint\&}{ pt}}