getbutton
TOP
,
LEFT
,
BOTTOM
,
RIGHT

The getbutton statement retrieves the coordinates of the last button that was pressed (in global screen co-ordinates).


Parameters

This statement has four parameters:

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

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

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

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


Description

This statement retrieves the coordinates of the last button that was pressed (in global screen co-ordinates). 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 
getbutton btop, bleft, bheight, bwidth

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


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.