]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/helpprov.tex
compilation fix after TRUE/FALSE change
[wxWidgets.git] / docs / latex / wx / helpprov.tex
CommitLineData
7cb74906
JS
1\section{\class{wxHelpProvider}}\label{wxhelpprovider}
2
3wxHelpProvider is an abstract class used by a program implementing context-sensitive help to
4show the help text for the given window.
5
6The current help provider must be explicitly set by the application using
7wxHelpProvider::Set().
8
9\wxheading{Derived from}
10
11No base class
12
e3c10211
JS
13\wxheading{Include files}
14
15<wx/cshelp.h>
16
7cb74906
JS
17\wxheading{See also}
18
4e28924c 19\helpref{wxContextHelp}{wxcontexthelp}, \helpref{wxContextHelpButton}{wxcontexthelpbutton},
7cb74906
JS
20\helpref{wxSimpleHelpProvider}{wxsimplehelpprovider}, \helpref{wxHelpControllerHelpProvider}{wxhelpcontrollerhelpprovider},
21\helpref{wxWindow::SetHelpText}{wxwindowsethelptext}, \helpref{wxWindow::GetHelpText}{wxwindowgethelptext}
22
23\latexignore{\rtfignore{\wxheading{Members}}}
24
25\membersection{wxHelpProvider::\destruct{wxHelpProvider}}\label{wxhelpproviderdtor}
26
27\func{}{\destruct{wxHelpProvider}}{\void}
28
29Virtual destructor for any base class.
30
31\membersection{wxHelpProvider::Set}\label{wxhelpproviderset}
32
33\func{wxHelpProvider*}{Set}{\param{wxHelpProvider* }{helpProvider}}
34
35Get/set the current, application-wide help provider. Returns
36the previous one.
37
38\membersection{wxHelpProvider::Get}\label{wxhelpproviderget}
39
40\func{wxHelpProvider*}{Get}{\void}
41
42Unlike some other classes, the help provider is not created on demand.
43This must be explicitly done by the application.
44
45\membersection{wxHelpProvider::GetHelp}\label{wxhelpprovidergethelp}
46
47\func{wxString}{GetHelp}{\param{const wxWindowBase* }{window}}
48
49Gets the help string for this window. Its interpretation is dependent on the help provider
50except that empty string always means that no help is associated with
51the window.
52
53\membersection{wxHelpProvider::ShowHelp}\label{wxhelpprovidershowhelp}
54
55\func{bool}{ShowHelp}{\param{wxWindowBase* }{window}}
56
57Shows help for the given window. Uses \helpref{GetHelp}{wxhelpprovidergethelp} internally if
58applicable.
59
60Returns TRUE if it was done, or FALSE if no help was available
61for this window.
62
63\membersection{wxHelpProvider::AddHelp}\label{wxhelpprovideraddhelp}
64
65\func{void}{AddHelp}{\param{wxWindowBase* }{window}, \param{const wxString\& }{text}}
66
67Associates the text with the given window or id. Although all help
68providers have these functions to allow making \helpref{wxWindow::SetHelpText}{wxwindowsethelptext}
69work, not all of them implement the functions.
70
7cb74906
JS
71\func{void}{AddHelp}{\param{wxWindowID }{id}, \param{const wxString\& }{text}}
72
73This version associates the given text with all windows with this id.
74May be used to set the same help string for all Cancel buttons in
75the application, for example.
76