Sign in Join
FPDoc Onlineexperiment

THTMLHelpDatabase class

In unit LazHelpHTML

Provides support for context-sensitive help using HTML help files.

Declaration

pascal
THTMLHelpDatabase = class(THelpDatabase)

Inheritance

  1. THTMLHelpDatabase
  2. THelpDatabase
  3. 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

DefaultBaseURLpublicDefault value for the BaseURL used in the HTML help database.
BuiltInBaseURLpublished
BaseURLpublishedProtocol and Path to the directory where HTML help files are stored for the HTML help database.
AutoRegisterpublishedIndicates if the HTML help database is automatically registered at run-time.
KeywordPrefixpublishedCommon prefix which identifies the related keyword topics handled in the HTML help database.

Methods

CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
ShowURLpublicDisplays a help viewer for the specified HTML help topic.
ShowHelppublicDisplays a context-sensitive HTML help topics in the HTML database.
GetNodesForKeywordpublicPopulates the list with help nodes using the KeywordPrefix for the HTML help database.
GetEffectiveBaseURLpublicGets the effective Base URL used to access a topic in the HTML help database.
LoadpublicLoads HTML help database settings from the specified configuration storage.
SavepublicSaves 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.