Providing online Help for users – PB Docs 70

Providing online Help for users

Two ways to call Help from an application

PowerBuilder provides two principal ways of calling an online
Help file from a PowerBuilder application:

  • Use the ShowHelp PowerScript
    function in your application scripts to call Help topics.
  • Declare the WinHelp API as an external function
    and use the WinHelp function in your application scripts to call
    Help topics.

note.gif The Help event You can also include context Help messages for individual
menu items and controls in your application code.

For more information on the Help event, see the PowerScript
Reference

.

Using ShowHelp

ShowHelp is simpler to implement than the WinHelp API. You
can use the ShowHelp PowerScript function to search for Help topics
by Help context ID, by keyword, and by accessing the Help file Contents
topic (the topic defined in the project file as the Help Contents
topic).

For more information on the ShowHelp function,
see the PowerScript Reference
.

Using the WinHelp API

Declaring and using the WinHelp API allows access to the full
range of WinHelp functions, many of which are not available in ShowHelp.
For example, using the WinHelp function you can easily specify a
window type or window name in which to present a Help topic.

proc.gif To declare the WinHelp API as an external function:

  1. Select Declare>Global External
    Functions from the menu bar of any painter that accesses the Script
    view.

  2. Enter the function declaration in the textbox.

    This example declares the WinHelp API:

    note.gif Library names on UNIX The declaration above is for Windows. The declaration for
    UNIX is the same except for the library name. On UNIX, the library
    name has the form

    where x depends
    on the platform. For example, the extension is so on Solaris.

  3. Click OK.

For more information about the WinHelp API,
see the online Help for the Microsoft Help Workshop or the documentation
for your Help authoring tool.

For more information about declaring and using
global external functions, see the PowerScript Reference
and Application
Techniques

.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x