1999-06-28 17:39:49 -04:00
|
|
|
\section{\class{wxTipProvider}}\label{wxtipprovider}
|
|
|
|
|
|
|
|
This is the class used together with \helpref{wxShowTip}{wxshowtip} function.
|
|
|
|
It must implement \helpref{GetTip}{wxtipprovidergettip} function and return the
|
|
|
|
current tip from it (different tip each time it is called).
|
|
|
|
|
|
|
|
You will never use this class yourself, but you need it to show startup tips
|
|
|
|
with wxShowTip. Also, if you want to get the tips text from elsewhere than a
|
|
|
|
simple text file, you will want to derive a new class from wxTipProvider and
|
1999-08-05 11:51:32 -04:00
|
|
|
use it instead of the one returned by \helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider}.
|
1999-06-28 17:39:49 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/tipdlg.h>
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{Startup tips overview}{tipsoverview}, \helpref{::wxShowTip}{wxshowtip}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxTipProvider::wxTipProvider}\label{wxtipproviderctor}
|
|
|
|
|
|
|
|
\func{}{wxTipProvider}{\param{size\_t }{currentTip}}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\docparam{currentTip}{The starting tip index.}
|
|
|
|
|
1999-08-05 11:51:32 -04:00
|
|
|
\membersection{wxTipProvider::GetTip}\label{wxtipprovidergettip}
|
1999-06-28 17:39:49 -04:00
|
|
|
|
|
|
|
\func{wxString}{GetTip}{\void}
|
|
|
|
|
|
|
|
Return the text of the current tip and pass to the next one. This function is
|
|
|
|
pure virtual, it should be implemented in the derived classes.
|
|
|
|
|
1999-08-05 11:51:32 -04:00
|
|
|
\membersection{wxCurrentTipProvider::GetCurrentTip}\label{wxtipprovidergetcurrenttip}
|
1999-06-28 17:39:49 -04:00
|
|
|
|
|
|
|
\constfunc{size\_t}{GetCurrentTip}{\void}
|
|
|
|
|
|
|
|
Returns the index of the current tip (i.e. the one which would be returned by
|
|
|
|
GetTip).
|
|
|
|
|
|
|
|
The program usually remembers the value returned by this function after calling
|
|
|
|
\helpref{wxShowTip}{wxshowtip}. Note that it is not the same as the value which
|
|
|
|
was passed to wxShowTip $+ 1$ because the user might have pressed the "Next"
|
|
|
|
button in the tip dialog.
|
1999-08-05 18:05:15 -04:00
|
|
|
|