How to build the HTMLHelp API into PowerBuilder

Issue

How to build the HTML Help API into PowerBuilder

Solution

  1. In the first drop down list in the Script View select (Declare)

  2. In the second drop down list in the Script View select Global External Functions

  3. Copy and Paste (or type in) in the following functions into the script area:

    function boolean HTML Help( ulong hwnd, string pszFile, uint uCommand, ulong dwData ) library

    "Hhctrl.ocx" alias for HTML Help A function boolean HTML Help( ulong hwnd, string pszFile, uint uCommand, string dwData ) library

    "Hhctrl.ocx" alias for HtmlHelpA

  4. In the second drop down list in the Script View select Instance Variables.

  5. Copy and Paste the following constant variables into the script area.

    constant uint HH_DISPLAY_TOPIC = 1

    constant uint HH_HELP_CONTEXT = 15

To Display a HTML Help Topic via its topic file name use the following script:

HTML Help( handle(parent), "PBHTMLHelp.chm", HH_DISPLAY_TOPIC, "Welcome.htm" )

The above script calls the HTML Help file PBHTMLHelp.chm and displays the topic file

Welcome.htm

To Display a HTML Help Topic via its map number use the following script:

HTML Help( handle(parent), "PBHTMLHelp.chm", HH_DISPLAY_TOPIC, 1 )

The above script calls the HTML Help file PBHTMLHelp.chm and display the topic whose map number is 1.

 Adobe

Få hjelp raskere og enklere

Ny bruker?