ShowPopupHelp PowerScript function
Description
Displays pop-up
help for the specified control.
Controls
Any control
Syntax
1 |
<span>ShowPopupHelp</span> ( <span>helpfile</span>, <span>control</span>, <span>contextid</span> ) |
Argument |
Description |
---|---|
helpfile |
String for the Help file name to be used |
control |
Dragobject for which the pop-up help |
contextid |
Long for the context ID number |
Return Values
Integer. Returns 1 if the function succeeds
and -1 if an error occurs.
Usage
A typical location for the ShowPopupHelp call
is in the Help event of a response window with the Context Help
property enabled. Events relating to movement of the cursor over
a control or to the dragging of a control or object are also logical
places for a ShowPopupHelp call.
You must type a correct context ID number for the contextid argument
or you get a message that a Help topic does not exist for the item
calling the ShowPopupHelp function.
Examples
This example calls a help file in a subdirectory
of the current directory:
1 |
<span>ShowPopupHelp</span> ( "Help/my_app.hlp", this, 510) |