PointerY PowerScript function
Description
Determines the distance of the pointer from the top of the
specified object.
Controls
Any object or control
Syntax
1 |
<span>objectname</span>.<span>PointerY</span> ( ) |
Argument |
Description |
---|---|
objectname |
The name of the control or window for |
Return Values
Integer. Returns the pointer’s
distance from the top of objectname in PowerBuilder
units if it succeeds and -1 if an error occurs. If objectname is null, PointerY returns null.
Examples
In a script for a control in a window, the following
example stores the distance of the pointer from the top of the window
in the variable li_dist. If the pointer is
10 units from the top of the window, li_dist equals
10:
1 |
integer li_Dist |
1 |
li_Dist = Parent.<span>PointerY</span>() |
This statement in a control’s RButtonDown
script displays a pop-up menu m_Appl.M_Help at
the cursor position:
1 |
m_Appl.M_Help.PopMenu(Parent.PointerX(), & |
1 |
   Parent.<span>PointerY</span>()) |