Q: I made an HTML Help file. How can I call it in PowerBuilder?
Answer: YesRUN ()Function or use an API function in WindowsHtmlHelp ()This function resides in the HtmlHelp ActiveX control Hhctrl. ocx.
① Define API:
Function Long HtmlHelpA (long hwnd, string lpHelpFile, long wCommand, string dwData) Library "hhctrl. ocx"
② Menu help option script:
Parentwindow. triggerevent ("ue_help ")
③ Custom Event ("ue_help") script in the MDI form:
HtmlHelpA (handle (this), "chm_name> chm_win_name", 0, "htm_name ")
For example, the name of the chmhelp file is help.chm, and the main window name of help.chmis main. the page to be tuned is my.htm, and the script is:
HtmlHelpA (handle (this), "help. chm> main", 0, "my.htm ")
Or: HtmlHelpA (handle (this), "help. chm",) // save trouble
If your computer has installed the htmlhelpreader hh.exe, you can directly run the HtmlHelp Help file.
Run ("hh help. chm ")
[Note] HtmlHelp ()Function
Note: |
Call the Help File in HTML format. |
Parameters |
Type and description |
Hwnd |
The handle of the window, which can be obtained by the handle () function. |
LpHelpFile |
The path and name of the HTML Help file. |
WCommand |
The operation. |
DwData |
The value required by the wCommand parameter. |