getlocalbutton
TOP
,
LEFT
,
BOTTOM
,
RIGHT

The getlocalbutton statement retrieves the coordinates of the last button that was pressed (in window relative coordinates).


Parameters

This statement has four parameters:

top – field or variable that will contain the coordinates of the top edge of the button.

left – field or variable that will contain the coordinates of the left edge of the button.

bottom – field or variable that will contain the coordinates of the bottom edge of the button.

right – field or variable that will contain the coordinates of the right edge of the button.


Description

This statement returns the coordinates (in window relative coordinates) of the most recently clicked button. It is intended that this statement be used in a procedure that is triggered by a button on a form (or any form object that triggers a procedure). Here is an example that gets the coordinates into four local variables.

local  btop, bleft, bheight, bwidth 
getlocalbutton btop, bleft, bheight, bwidth

Note: For most new applications, the info(“buttonrectangle”) function in combination with the xytoxy( function is more convenient than this statement.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.