When carrying out Windows development, use the CurrentHelpFile property or DelphiVCL.Application.CurrentHelpFile to indicate the current Help file.
You can read CurrentHelpFile to determine the name of the Help file that is currently used by the application when it executes a Help command (through the HelpCommand method) or when it brings up context-sensitive Help (through the HelpContext or HelpJump method). If CurrentHelpFile is an empty string, the application ignores the attempts to display Help.
The Help system specified by HelpSystem displays Help topics from the Help file specified by CurrentHelpFile.
HelpFile supplies the value of CurrentHelpFile unless there is a Help file specified by TForm.HelpFile for the active form. Then the Help file from TForm.HelpFile is used.
Let’s browse all the properties and methods of DelphiVCL.Application.CurrentHelpFile using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.CurrentHelpFile) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.CurrentHelpFile using the print() command:
1 2 |
print(DelphiVCL.Application.CurrentHelpFile) print(DelphiVCL.Application.CurrentHelpFile.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.