2000-10-09 09:13:39 -04:00
|
|
|
\section{\class{wxHelpProvider}}\label{wxhelpprovider}
|
|
|
|
|
|
|
|
wxHelpProvider is an abstract class used by a program implementing context-sensitive help to
|
|
|
|
show the help text for the given window.
|
|
|
|
|
|
|
|
The current help provider must be explicitly set by the application using
|
|
|
|
wxHelpProvider::Set().
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
No base class
|
|
|
|
|
2000-10-09 10:31:03 -04:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/cshelp.h>
|
|
|
|
|
2000-10-09 09:13:39 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2000-10-09 09:53:33 -04:00
|
|
|
\helpref{wxContextHelp}{wxcontexthelp}, \helpref{wxContextHelpButton}{wxcontexthelpbutton},
|
2000-10-09 09:13:39 -04:00
|
|
|
\helpref{wxSimpleHelpProvider}{wxsimplehelpprovider}, \helpref{wxHelpControllerHelpProvider}{wxhelpcontrollerhelpprovider},
|
2006-06-11 17:10:32 -04:00
|
|
|
\helpref{wxWindow::SetHelpText}{wxwindowsethelptext}, \helpref{wxWindow::GetHelpTextAtPoint}{wxwindowgethelptextatpoint}
|
2000-10-09 09:13:39 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
2000-10-09 09:13:39 -04:00
|
|
|
\membersection{wxHelpProvider::\destruct{wxHelpProvider}}\label{wxhelpproviderdtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxHelpProvider}}{\void}
|
|
|
|
|
|
|
|
Virtual destructor for any base class.
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
2004-03-23 15:31:28 -05:00
|
|
|
\membersection{wxHelpProvider::AddHelp}\label{wxhelpprovideraddhelp}
|
2000-10-09 09:13:39 -04:00
|
|
|
|
2004-03-23 15:31:28 -05:00
|
|
|
\func{void}{AddHelp}{\param{wxWindowBase* }{window}, \param{const wxString\& }{text}}
|
2000-10-09 09:13:39 -04:00
|
|
|
|
2004-03-23 15:31:28 -05:00
|
|
|
Associates the text with the given window or id. Although all help
|
|
|
|
providers have these functions to allow making \helpref{wxWindow::SetHelpText}{wxwindowsethelptext}
|
|
|
|
work, not all of them implement the functions.
|
2000-10-09 09:13:39 -04:00
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
2000-10-09 09:13:39 -04:00
|
|
|
\membersection{wxHelpProvider::Get}\label{wxhelpproviderget}
|
|
|
|
|
|
|
|
\func{wxHelpProvider*}{Get}{\void}
|
|
|
|
|
|
|
|
Unlike some other classes, the help provider is not created on demand.
|
|
|
|
This must be explicitly done by the application.
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
2000-10-09 09:13:39 -04:00
|
|
|
\membersection{wxHelpProvider::GetHelp}\label{wxhelpprovidergethelp}
|
|
|
|
|
|
|
|
\func{wxString}{GetHelp}{\param{const wxWindowBase* }{window}}
|
|
|
|
|
|
|
|
Gets the help string for this window. Its interpretation is dependent on the help provider
|
|
|
|
except that empty string always means that no help is associated with
|
|
|
|
the window.
|
|
|
|
|
|
|
|
\func{void}{AddHelp}{\param{wxWindowID }{id}, \param{const wxString\& }{text}}
|
|
|
|
|
|
|
|
This version associates the given text with all windows with this id.
|
|
|
|
May be used to set the same help string for all Cancel buttons in
|
|
|
|
the application, for example.
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
2002-06-05 17:11:55 -04:00
|
|
|
\membersection{wxHelpProvider::RemoveHelp}\label{wxhelpproviderremovehelp}
|
|
|
|
|
|
|
|
\func{void}{RemoveHelp}{\param{wxWindowBase* }{window}}
|
|
|
|
|
|
|
|
Removes the association between the window pointer and the help text. This is
|
|
|
|
called by the wxWindow destructor. Without this, the table of help strings will fill up
|
|
|
|
and when window pointers are reused, the wrong help string will be found.
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
2004-03-23 15:31:28 -05:00
|
|
|
\membersection{wxHelpProvider::Set}\label{wxhelpproviderset}
|
|
|
|
|
|
|
|
\func{wxHelpProvider*}{Set}{\param{wxHelpProvider* }{helpProvider}}
|
|
|
|
|
|
|
|
Get/set the current, application-wide help provider. Returns
|
|
|
|
the previous one.
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
|
|
|
|
\membersection{wxHelpProvider::ShowHelpAtPoint}\label{wxhelpprovidershowhelpatpoint}
|
|
|
|
|
|
|
|
\func{bool}{ShowHelpAtPoint}{\param{wxWindowBase* }{window}, \param{const wxPoint & }{point}, \param{wxHelpEvent::Origin }{origin}}
|
|
|
|
|
|
|
|
This function may be overridden to show help for the window when it should
|
|
|
|
depend on the position inside the window, By default this method forwards to
|
|
|
|
\helpref{ShowHelp}{wxhelpprovidershowhelp}, so it is enough to only implement
|
|
|
|
the latter if the help doesn't depend on the position.
|
|
|
|
|
|
|
|
Returns \true if help was shown, or \false if no help was available for this
|
|
|
|
window.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{window}{Window to show help text for.}
|
|
|
|
|
|
|
|
\docparam{point}{Coordinates of the mouse at the moment of help event emission.}
|
|
|
|
|
2006-06-18 17:40:22 -04:00
|
|
|
\docparam{origin}{Help event origin, see \helpref{wxHelpEvent::GetOrigin}{wxhelpeventgetorigin}.}
|
2006-06-11 17:10:32 -04:00
|
|
|
|
|
|
|
\newsince{2.7.0}
|
|
|
|
|
|
|
|
|
2004-03-23 15:31:28 -05:00
|
|
|
\membersection{wxHelpProvider::ShowHelp}\label{wxhelpprovidershowhelp}
|
|
|
|
|
|
|
|
\func{bool}{ShowHelp}{\param{wxWindowBase* }{window}}
|
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
Shows help for the given window. Override this function if the help doesn't
|
|
|
|
depend on the exact position inside the window, otherwise you need to override
|
|
|
|
\helpref{ShowHelpAtPoint}{wxhelpprovidershowhelpatpoint}.
|
2004-03-23 15:31:28 -05:00
|
|
|
|
2006-06-11 17:10:32 -04:00
|
|
|
Returns \true if help was shown, or \false if no help was available for this
|
|
|
|
window.
|
2004-03-23 15:31:28 -05:00
|
|
|
|