X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44cf9b50eef370cc94a6c1f249693dee3776d619..1a87edf286921de9b182f3d19adb6bb63ba85ebd:/docs/latex/wx/timer.tex diff --git a/docs/latex/wx/timer.tex b/docs/latex/wx/timer.tex index 1648196884..21edad6b88 100644 --- a/docs/latex/wx/timer.tex +++ b/docs/latex/wx/timer.tex @@ -11,9 +11,13 @@ There are two different ways to use this class: \helpref{Notify}{wxtimernotify} member to perform the required action. \item Or you may redirect the notifications to any \helpref{wxEvtHandler}{wxevthandler} derived object by using the non default -constructor or \helpref{SetOwner}{wxtimersetowner}. Then use {\tt EVT\_TIMER} +constructor or \helpref{SetOwner}{wxtimersetowner}. Then use the {\tt EVT\_TIMER} macro to connect it to the event handler which will receive \helpref{wxTimerEvent}{wxtimerevent} notifications. +\item Or you may use a derived class and the {\tt EVT\_TIMER} +macro to connect it to an event handler defined in the derived class. +If the default constructor is used, the timer object will be its +own owner object, since it is derived from wxEvtHandler. \end{enumerate} In any case, you must start the timer with \helpref{Start}{wxtimerstart} @@ -24,7 +28,7 @@ be stopped later with \helpref{Stop}{wxtimerstop}. \wxheading{Derived from} -\helpref{wxObject}{wxobject} +\helpref{wxEvtHandler}{wxevthandler} \wxheading{Include files} @@ -49,7 +53,7 @@ Default constructor. If you use it to construct the object and don't call Creates a timer and associates it with {\it owner}. Please see \helpref{SetOwner}{wxtimersetowner} for the description of parameters. -\membersection{wxTimer::\destruct{wxTimer}} +\membersection{wxTimer::\destruct{wxTimer}}\label{wxtimerdtor} \func{}{\destruct{wxTimer}}{\void} @@ -102,14 +106,14 @@ the previous value is used. Returns {\tt false} if the timer could not be starte If {\it oneShot}\/ is {\tt false} (the default), the \helpref{Notify}{wxtimernotify} function will be called repeatedly until the timer is stopped. If {\tt true}, it will be called only once and the timer will stop automatically. To make your -code more readable you may also use the following symbolic constants -\twocolwidtha{5cm}% +code more readable you may also use the following symbolic constants: + +\twocolwidtha{5cm} \begin{twocollist}\itemsep=0pt \twocolitem{wxTIMER\_CONTINUOUS}{Start a normal, continuously running, timer} \twocolitem{wxTIMER\_ONE\_SHOT}{Start a one shot timer} \end{twocollist} - If the timer was already running, it will be stopped by this method before restarting it.