]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/tipprov.tex
add artprov sample to the list
[wxWidgets.git] / docs / latex / wx / tipprov.tex
CommitLineData
c50f1fb9
VZ
1\section{\class{wxTipProvider}}\label{wxtipprovider}
2
3This is the class used together with \helpref{wxShowTip}{wxshowtip} function.
4It must implement \helpref{GetTip}{wxtipprovidergettip} function and return the
5current tip from it (different tip each time it is called).
6
7You will never use this class yourself, but you need it to show startup tips
8with wxShowTip. Also, if you want to get the tips text from elsewhere than a
9simple text file, you will want to derive a new class from wxTipProvider and
d7cb14ce 10use it instead of the one returned by \helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider}.
c50f1fb9
VZ
11
12\wxheading{Derived from}
13
14None.
15
16\wxheading{Include files}
17
18<wx/tipdlg.h>
19
20\wxheading{See also}
21
22\helpref{Startup tips overview}{tipsoverview}, \helpref{::wxShowTip}{wxshowtip}
23
24\latexignore{\rtfignore{\wxheading{Members}}}
25
26\membersection{wxTipProvider::wxTipProvider}\label{wxtipproviderctor}
27
28\func{}{wxTipProvider}{\param{size\_t }{currentTip}}
29
30Constructor.
31
32\docparam{currentTip}{The starting tip index.}
33
d7cb14ce 34\membersection{wxTipProvider::GetTip}\label{wxtipprovidergettip}
c50f1fb9
VZ
35
36\func{wxString}{GetTip}{\void}
37
38Return the text of the current tip and pass to the next one. This function is
39pure virtual, it should be implemented in the derived classes.
40
d7cb14ce 41\membersection{wxCurrentTipProvider::GetCurrentTip}\label{wxtipprovidergetcurrenttip}
c50f1fb9
VZ
42
43\constfunc{size\_t}{GetCurrentTip}{\void}
44
45Returns the index of the current tip (i.e. the one which would be returned by
46GetTip).
47
48The program usually remembers the value returned by this function after calling
49\helpref{wxShowTip}{wxshowtip}. Note that it is not the same as the value which
50was passed to wxShowTip $+ 1$ because the user might have pressed the "Next"
51button in the tip dialog.
22d6efa8 52