Help event
Description
Occurs when the user drags the question-mark button from the
title bar to a menu item or a control and then clicks, or when the
user clicks in a control (giving it focus) and then presses the
F1 key.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_help |
Window, Menu, DragObject |
Parameters
|
Argument |
Description |
|---|---|
|
xpos |
Integer by value |
|
ypos |
Integer by value |
Return Values
Long. Return code choices (specified
in a RETURN statement):
-
0 Continue
processing
Usage
The question-mark button only appears in the title bar of
response windows. You must set the ContextHelp property to true to
enable this event.
You can script Help messages for individual menu items and
controls. PowerBuilder dispatches the associated Windows message
to the appropriate menu item or control.
Examples
This example codes a message box to open when the
user drags and clicks the question-mark button over a TrackBar control:
|
1 |
MessageBox("Context Help Message", "Move the TrackBar" & |
|
1 |
+ " slider to~r~n change the DataWindow magnification.") |