]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/tipprov.tex
If somebody ever decides to actually check in fsfile.tex and
[wxWidgets.git] / docs / latex / wx / tipprov.tex
... / ...
CommitLineData
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
10use it instead of the one returned by
11\helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider}.
12
13\wxheading{Derived from}
14
15None.
16
17\wxheading{Include files}
18
19<wx/tipdlg.h>
20
21\wxheading{See also}
22
23\helpref{Startup tips overview}{tipsoverview}, \helpref{::wxShowTip}{wxshowtip}
24
25\latexignore{\rtfignore{\wxheading{Members}}}
26
27\membersection{wxTipProvider::wxTipProvider}\label{wxtipproviderctor}
28
29\func{}{wxTipProvider}{\param{size\_t }{currentTip}}
30
31Constructor.
32
33\docparam{currentTip}{The starting tip index.}
34
35\membersection{wxTipProvider::GetTip}{wxtipprovidergettip}
36
37\func{wxString}{GetTip}{\void}
38
39Return the text of the current tip and pass to the next one. This function is
40pure virtual, it should be implemented in the derived classes.
41
42\membersection{wxCurrentTipProvider::GetCurrentTip}{wxtipprovidergetcurrenttip}
43
44\constfunc{size\_t}{GetCurrentTip}{\void}
45
46Returns the index of the current tip (i.e. the one which would be returned by
47GetTip).
48
49The program usually remembers the value returned by this function after calling
50\helpref{wxShowTip}{wxshowtip}. Note that it is not the same as the value which
51was passed to wxShowTip $+ 1$ because the user might have pressed the "Next"
52button in the tip dialog.