Classes

Class XbpHelp() Foundation

Class function XbpHelp class.

Superclass
Description

The XbpHelp class provides objects that display online help files created by the help compiler. On modern Windows platforms, this is the Microsoft HTML Help Workshop (see the chapter Online Help in the Xbase++ documentation).

An XbpHelp object manages the online help window and can activate a particular help window within the online help. This allows help text that applies only to a specific dialog element to be displayed. In conjunction with XbpHelpLabel objects context sensitive online help is created.

Differences in online help systems
Windows RTF Windows HTML
Help compiler HCW.EXE HHW.EXE
Source code extension .RTF .HTM
Compiled help file extension .HLP .CHM

Class methods
:new()
Creates an instance of the XbpHelp class.
Instance variables
:debugMode
Displays the online help in debug mode.
:resGeneralHelp
Contains the numeric ID for the help text that is displayed when the "General help F2" option of the online help menu is selected.
:resKeysHelp
Contains the numeric ID for the text that is displayed when the "Keys help F9" option of the online help menu is selected.
Life cycle
:create()
Requests system resources for the XbpHelp object.
:configure()
Reconfigures the XbpHelp object.
:destroy()
Releases the system resources of the XbpHelp object.
Methods
:hide()
Closes the online help window.
:showGeneralHelp()
OS/2 - Displays the help window containing the General help text.
:showHelp()
Displays the specified help window of the online help.
:showHelpContents()
Displays the table of contents of the online help.
:showHelpIndex()
Displays the index of the online help.
:showKeysHelp()
OS/2 - Displays the help window containing help text for common key assignments used in the application.
Examples
Activate online help under Windows
// A comprehensive example for a Windows online help project 
// is found in the ..\SAMPLES\BASICS directory. It includes 
// PRG source code, project file (HHP file), table of contents 
// (HHC file), index (HHK file) and HTML sources. 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.