43
43
<A NAME="wxhelpprovideraddhelp"></A>
44
44
<H3>wxHelpProvider::AddHelp</H3>
46
<B>void</B> <B>AddHelp</B>(<B>wxWindowBase* </B><I>window</I>, <B>const <A HREF="wx_wxstring.html#wxstring">wxString</A>& </B></B><I>text</I>)<P>
46
<B>virtual void</B> <B>AddHelp</B>(<B>wxWindowBase* </B><I>window</I>, <B>const <A HREF="wx_wxstring.html#wxstring">wxString</A>& </B></B><I>text</I>)<P>
47
47
Associates the text with the given window or id. Although all help
48
48
providers have these functions to allow making <A HREF="wx_wxwindow.html#wxwindowsethelptext">wxWindow::SetHelpText</A>
49
49
work, not all of them implement the functions.<P>
50
<B>virtual void</B> <B>AddHelp</B>(<B>wxWindowID </B><I>id</I>, <B>const <A HREF="wx_wxstring.html#wxstring">wxString</A>& </B></B><I>text</I>)<P>
51
This version associates the given text with all windows with this id.
52
May be used to set the same help string for all Cancel buttons in
53
the application, for example.<P>
53
57
<A NAME="wxhelpproviderget"></A>
54
58
<H3>wxHelpProvider::Get</H3>
56
<B><A HREF="wx_wxhelpprovider.html#wxhelpprovider">wxHelpProvider</A>*</B> </B> <B>Get</B>()<P>
60
<B>static <A HREF="wx_wxhelpprovider.html#wxhelpprovider">wxHelpProvider</A>*</B> </B> <B>Get</B>()<P>
61
Returns pointer to help provider instance.<P>
57
62
Unlike some other classes, the help provider is not created on demand.
58
This must be explicitly done by the application.<P>
63
This must be explicitly done by the application using
64
<A HREF="wx_wxhelpprovider.html#wxhelpproviderset">Set</A>.<P>
62
68
<A NAME="wxhelpprovidergethelp"></A>
63
69
<H3>wxHelpProvider::GetHelp</H3>
65
<B><A HREF="wx_wxstring.html#wxstring">wxString</A></B> </B> <B>GetHelp</B>(<B>const wxWindowBase* </B><I>window</I>)<P>
71
<B>virtual <A HREF="wx_wxstring.html#wxstring">wxString</A></B> </B> <B>GetHelp</B>(<B>const wxWindowBase* </B><I>window</I>)<P>
66
72
Gets the help string for this window. Its interpretation is dependent on the help provider
67
73
except that empty string always means that no help is associated with
69
<B>void</B> <B>AddHelp</B>(<B>wxWindowID </B><I>id</I>, <B>const <A HREF="wx_wxstring.html#wxstring">wxString</A>& </B></B><I>text</I>)<P>
70
This version associates the given text with all windows with this id.
71
May be used to set the same help string for all Cancel buttons in
72
the application, for example.<P>
76
78
<A NAME="wxhelpproviderremovehelp"></A>
77
79
<H3>wxHelpProvider::RemoveHelp</H3>
79
<B>void</B> <B>RemoveHelp</B>(<B>wxWindowBase* </B><I>window</I>)<P>
80
Removes the association between the window pointer and the help text. This is
81
called by the wxWindow destructor. Without this, the table of help strings will fill up
82
and when window pointers are reused, the wrong help string will be found.<P>
81
<B>virtual void</B> <B>RemoveHelp</B>(<B>wxWindowBase* </B><I>window</I>)<P>
82
Removes the association between the window pointer and the help text, if it
83
was previously set using <A HREF="wx_wxhelpprovider.html#wxhelpprovideraddhelp">AddHelp</A>. This is
84
called by the wxWindow destructor. Without this, the table of help strings will
85
fill up and when window pointers are reused, the wrong help string will be
87
Note that this method may be called even for windows that don't have any
88
associated help text. If that happens, its implementation should simply do
86
93
<A NAME="wxhelpproviderset"></A>
87
94
<H3>wxHelpProvider::Set</H3>
89
<B><A HREF="wx_wxhelpprovider.html#wxhelpprovider">wxHelpProvider</A>*</B> </B> <B>Set</B>(<B><A HREF="wx_wxhelpprovider.html#wxhelpprovider">wxHelpProvider</A>* </B></B><I>helpProvider</I>)<P>
96
<B>static <A HREF="wx_wxhelpprovider.html#wxhelpprovider">wxHelpProvider</A>*</B> </B> <B>Set</B>(<B><A HREF="wx_wxhelpprovider.html#wxhelpprovider">wxHelpProvider</A>* </B></B><I>helpProvider</I>)<P>
90
97
Get/set the current, application-wide help provider. Returns
91
98
the previous one.<P>
95
102
<A NAME="wxhelpprovidershowhelpatpoint"></A>
96
103
<H3>wxHelpProvider::ShowHelpAtPoint</H3>
98
<B>bool</B> <B>ShowHelpAtPoint</B>(<B>wxWindowBase* </B><I>window</I>, <B>const <A HREF="wx_wxpoint.html#wxpoint">wxPoint</A></B></B><I>point</I>, <B>wxHelpEvent::Origin </B><I>origin</I>)<P>
105
<B>virtual bool</B> <B>ShowHelpAtPoint</B>(<B>wxWindowBase* </B><I>window</I>, <B>const <A HREF="wx_wxpoint.html#wxpoint">wxPoint</A></B></B><I>point</I>, <B>wxHelpEvent::Origin </B><I>origin</I>)<P>
99
106
This function may be overridden to show help for the window when it should
100
107
depend on the position inside the window, By default this method forwards to
101
108
<A HREF="wx_wxhelpprovider.html#wxhelpprovidershowhelp">ShowHelp</A>, so it is enough to only implement