THTMLHelpDatabase class
Provides support for context-sensitive help using HTML help files.
Declaration
THTMLHelpDatabase = class(THelpDatabase)Inheritance
- THTMLHelpDatabase
- THelpDatabase
TComponent
Description
THTMLHelpDatabase is a
THelpDatabase descendant that
provides support for using HTML files as context-sensitive help displayed
when the F1 key is pressed in an application. THTMLHelpDatabase extends the
ancestor class to include properties and methods needed to associate Help
Keywords to specific HTML files, and to retrieve and display the help content.
The KeywordPrefix property is the value found at the start of a HelpKeyword which indicates that the topic belongs the HTML help database. BaseURL determines the path searched when accessing HTML files for the help database.
An application can create a THTMLHelpDatabase instance, assign the KeywordPrefix and BaseURL for the help database, and use AutoRegistered to enable the help database. Controls on the Form should use the value htKeyword in their HelpType property, and their HelpKeyword property must be set to a value that includes the KeyWordPrefix and the HTML file name accessed for the control.
THTMLBrowserHelpViewer is a companion component that allows the correct HTML help file to be displayed for the keyword/url in a web browser when the F1 key is pressed.
There is an example program that demonstrates usage of the components:
examples/helphtml
See also
Properties
DefaultBaseURL | public | Default value for the BaseURL used in the HTML help database. |
BuiltInBaseURL | published | |
BaseURL | published | Protocol and Path to the directory where HTML help files are stored for the HTML help database. |
AutoRegister | published | Indicates if the HTML help database is automatically registered at run-time. |
KeywordPrefix | published | Common prefix which identifies the related keyword topics handled in the HTML help database. |
Methods
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
ShowURL | public | Displays a help viewer for the specified HTML help topic. |
ShowHelp | public | Displays a context-sensitive HTML help topics in the HTML database. |
GetNodesForKeyword | public | Populates the list with help nodes using the KeywordPrefix for the HTML help database. |
GetEffectiveBaseURL | public | Gets the effective Base URL used to access a topic in the HTML help database. |
Load | public | Loads HTML help database settings from the specified configuration storage. |
Save | public | Saves configuration settings to the specified storage. |
Inherited
From THelpDatabase (32)
AddSupportedMimeType BasePathObject CanShowTableOfContents Databases FindViewer GetLocalizedName GetNodesForClass GetNodesForContext GetNodesForDirective GetNodesForMessage GetNodesForPascalContexts GetRegisteredItem ID OnFindViewer Reference Registered RegisteredItemCount RegisterFileItemWithNode RegisterItem RegisterItemWithNode RegisterSelf Release SetSupportedMimeTypes ShowError ShowHelpFile ShowTableOfContents SupportedMimeTypes SupportsMimeType TOCNode UnregisterAllItems UnregisterItem UnregisterSelf
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
