rectangleinset(
RECTANGLE
,
DISTANCE
)

The rectangleinset( function insets a rectangle by a specified amount.


Parameters

This function has two parameters:

rectangle – the original rectangle to be adjusted.

distance – the distance (in pixels) to inset/outset the rectangle. If the distance is positive, the rectangle is made smaller. If the distance is negative, the rectangle is made larger.


Description

This function insets a rectangle by a specified amount. The procedure below creates a rectangle that is inset 100 pixels from all four edges of the screen.

MyRectangle=rectangleinset(info("screenrectangle"),100)

If the distance is negative the rectangle will be enlarged. This procedure creates a rectangle that is 1/2 inch larger than the currently pressed button.

MyRectangle=rectangleinset(info("buttonrectangle"),-36)

See Also


History

VersionStatusNotes
10.0NewNew in this version.