In this post, you’ll learn how to use the HelpKeyword property or DelphiVCL.Application.HelpKeyword to display the Help topic specified by the keyword. Using HelpKeyword to show the Help topic, which has the Keyword parameter and which is from the file specified in the CurrentHelpFile property. HelpKeyword invokes the current Help system, passing it the string specified by Keyword. If the current Help system is HTMLHelp (or WinHelp), this displays the Help topic having an Alink tag equal to Keyword.
HelpKeyword returns False if the current Help system does not support keyword lookups.
Learning how to do it will allow you to easily build GUIs with Python Development Tools.
Table of Contents
How to use DelphiVCL.Application.HelpKeyword properly?
In order for the Help to work properly, insert in the uses clause of your application the Vcl.HtmlHelpViewer or another unit that provides an interface to the external Help viewer to use. The Vcl.HtmlHelpViewer unit provides a Delphi interface to the HTMLHelp Windows native Help handling function. For C++, you need to include the HTMLHelpViewer.hpp header files.
For information about the native Help handling functions (HTMLHelp or other) and about the data passed to them, see the appropriate HTMLHelp topics in the MSDN Library.
How to browse the properties, methods, and built-in properties of the DelphiVCL.Application.HelpKeyword?
Let’s browse all the properties and methods of the DelphiVCL.Application.HelpKeyword using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.HelpKeyword) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.HelpKeyword using the print() command:
1 2 |
print(DelphiVCL.Application.HelpKeyword) print(DelphiVCL.Application.HelpKeyword.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.