In this post, you’ll learn how to use the HelpCommand method or DelphiVCL.Application.HelpCommand to provide access to any of the Help commands in the application programming interface (API) of native Help handling functions HTMLHelp, WinHelp, or others. Learning how to use HelpCommand Method will allow you to easily build GUIs with Python Windows GUI Builder.
Use HelpCommand to send a command to HTMLHelp, WinHelp, or other native Help handling functions. Before sending the Help command to the native (Windows) help engine, HelpCommand generates an OnHelp event on the active form or the TApplication object. Finally, the command is forwarded to the native Help handling functions (HTMLHelp or WinHelp) if there is no event handler for the OnHelp event..
In order for HelpCommand to work and to call the proper native Help handling function, insert in the uses clause of your application, the Vcl.HtmlHelpViewer unit 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.
Table of Contents
How to browse the properties, and methods of DelphiVCL.Application.HelpCommand?
Let’s browse all the properties and methodsof the DelphiVCL.Application.HelpCommand using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.HelpCommand) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.HelpCommand using the print() command:
1 2 |
print(DelphiVCL.Application.HelpCommand) print(DelphiVCL.Application.HelpCommand.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.