How to call help files in HTML Format

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.