rectangleadjust(
RECTANGLE
,
TOP
,
LEFT
,
BOTTOM
,
RIGHT
)

The rectangleadjust( function adjusts all four edges of a rectangle independently


Parameters

This function has five parameters:

rectangle – the original rectangle to be adjusted.

top – is the distance the top edge of the rectangle will be moved. Positive numbers move the edge down, negative values move it up. Note: all distances are specified in pixels.

left – is the distance the left edge of the rectangle will be moved. Positive numbers move the edge to the right, negative to the left.

bottom – is the distance the bottom edge of the rectangle will be moved. Positive numbers move the edge down, negative values move it up.

right – is the distance the right edge of the rectangle will be moved. Positive numbers move the edge to the right, negative to the left.


Description

This function adjusts all four edges of a rectangle independently. The procedure below creates a rectangle that is inset 20 pixels from all four edges of the screen.

MyRectangle=rectangleadjust(info("screenrectangle"),20,20,-20,-20)

The procedure below creates a rectangle that is the same size as the button rectangle but shifted 1 inch (72 pixels) to the right.

MyRectangle=rectangleadjust(info("buttonrectangle"),0,72,0,72)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0