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
}
13 \wxheading{Include files
}
19 \helpref{wxContextHelp
}{wxcontexthelp
},
\helpref{wxContextHelpButton
}{wxcontexthelpbutton
},
20 \helpref{wxSimpleHelpProvider
}{wxsimplehelpprovider
},
\helpref{wxHelpControllerHelpProvider
}{wxhelpcontrollerhelpprovider
},
21 \helpref{wxWindow::SetHelpText
}{wxwindowsethelptext
},
\helpref{wxWindow::GetHelpText
}{wxwindowgethelptext
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxHelpProvider::
\destruct{wxHelpProvider
}}\label{wxhelpproviderdtor
}
27 \func{}{\destruct{wxHelpProvider
}}{\void}
29 Virtual destructor for any base class.
31 \membersection{wxHelpProvider::Set
}\label{wxhelpproviderset
}
33 \func{wxHelpProvider*
}{Set
}{\param{wxHelpProvider*
}{helpProvider
}}
35 Get/set the current, application-wide help provider. Returns
38 \membersection{wxHelpProvider::Get
}\label{wxhelpproviderget
}
40 \func{wxHelpProvider*
}{Get
}{\void}
42 Unlike some other classes, the help provider is not created on demand.
43 This must be explicitly done by the application.
45 \membersection{wxHelpProvider::GetHelp
}\label{wxhelpprovidergethelp
}
47 \func{wxString
}{GetHelp
}{\param{const wxWindowBase*
}{window
}}
49 Gets the help string for this window. Its interpretation is dependent on the help provider
50 except that empty string always means that no help is associated with
53 \membersection{wxHelpProvider::ShowHelp
}\label{wxhelpprovidershowhelp
}
55 \func{bool
}{ShowHelp
}{\param{wxWindowBase*
}{window
}}
57 Shows help for the given window. Uses
\helpref{GetHelp
}{wxhelpprovidergethelp
} internally if
60 Returns TRUE if it was done, or FALSE if no help was available
63 \membersection{wxHelpProvider::AddHelp
}\label{wxhelpprovideraddhelp
}
65 \func{void
}{AddHelp
}{\param{wxWindowBase*
}{window
},
\param{const wxString\&
}{text
}}
67 Associates the text with the given window or id. Although all help
68 providers have these functions to allow making
\helpref{wxWindow::SetHelpText
}{wxwindowsethelptext
}
69 work, not all of them implement the functions.
71 \func{void
}{AddHelp
}{\param{wxWindowID
}{id
},
\param{const wxString\&
}{text
}}
73 This version associates the given text with all windows with this id.
74 May be used to set the same help string for all Cancel buttons in
75 the application, for example.