getinternalbutton
TOP
,
LEFT
,
BOTTOM
,
RIGHT

The getinternalbutton statement retrieves the coordinates of the last button that was pressed (in form 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 form relative coordinates) of the most recently clicked button. (Form relative coordinates are the coordinate values that appear in the Measurements inspector palette.)

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.