1 \section{\class{wxHelpProvider
}}\label{wxhelpprovider
}
3 wxHelpProvider is an abstract class used by a program implementing context-sensitive help to
4 show the help text for the given window.
6 The current help provider must be explicitly set by the application using
9 \wxheading{Derived from
}
15 \helpref{wxHelpContext
}{wxhelpcontext
},
\helpref{wxHelpContextButton
}{wxhelpcontextbutton
},
16 \helpref{wxSimpleHelpProvider
}{wxsimplehelpprovider
},
\helpref{wxHelpControllerHelpProvider
}{wxhelpcontrollerhelpprovider
},
17 \helpref{wxWindow::SetHelpText
}{wxwindowsethelptext
},
\helpref{wxWindow::GetHelpText
}{wxwindowgethelptext
}
19 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxHelpProvider::
\destruct{wxHelpProvider
}}\label{wxhelpproviderdtor
}
23 \func{}{\destruct{wxHelpProvider
}}{\void}
25 Virtual destructor for any base class.
27 \membersection{wxHelpProvider::Set
}\label{wxhelpproviderset
}
29 \func{wxHelpProvider*
}{Set
}{\param{wxHelpProvider*
}{helpProvider
}}
31 Get/set the current, application-wide help provider. Returns
34 \membersection{wxHelpProvider::Get
}\label{wxhelpproviderget
}
36 \func{wxHelpProvider*
}{Get
}{\void}
38 Unlike some other classes, the help provider is not created on demand.
39 This must be explicitly done by the application.
41 \membersection{wxHelpProvider::GetHelp
}\label{wxhelpprovidergethelp
}
43 \func{wxString
}{GetHelp
}{\param{const wxWindowBase*
}{window
}}
45 Gets the help string for this window. Its interpretation is dependent on the help provider
46 except that empty string always means that no help is associated with
49 \membersection{wxHelpProvider::ShowHelp
}\label{wxhelpprovidershowhelp
}
51 \func{bool
}{ShowHelp
}{\param{wxWindowBase*
}{window
}}
53 Shows help for the given window. Uses
\helpref{GetHelp
}{wxhelpprovidergethelp
} internally if
56 Returns TRUE if it was done, or FALSE if no help was available
59 \membersection{wxHelpProvider::AddHelp
}\label{wxhelpprovideraddhelp
}
61 \func{void
}{AddHelp
}{\param{wxWindowBase*
}{window
},
\param{const wxString\&
}{text
}}
63 Associates the text with the given window or id. Although all help
64 providers have these functions to allow making
\helpref{wxWindow::SetHelpText
}{wxwindowsethelptext
}
65 work, not all of them implement the functions.
67 \membersection{wxHelpProvider::AddHelp
}\label{wxhelpprovideraddhelp
}
69 \func{void
}{AddHelp
}{\param{wxWindowID
}{id
},
\param{const wxString\&
}{text
}}
71 This version associates the given text with all windows with this id.
72 May be used to set the same help string for all Cancel buttons in
73 the application, for example.