rectangleoffset(
RECTANGLE
,
VDISTANCE
,
HDISTANCE
)

The rectangleoffset( function offsets a rectangle to a new position.


Parameters

This function has three parameters:

rectangle – the original rectangle to be adjusted

vdistance – the vertical distance to move the rectangle. Positive numbers move the rectangle down, negative values move it up. Note: all distances are specified in pixels.

hdistance – the horizontal distance to move the rectangle. Positive numbers move the rectangle to the right, negative values move it to the left.


Description

This function offsets (moves) a rectangle by a specified amount. The procedure below creates a rectangle that is the same size as the currently pressed button but positioned 1/2 inch below it and 1/2 inch to the right.

MyRectangle=rectangleoffset(info("buttonrectangle"),36,36)

See Also


History

VersionStatusNotes
10.0NewNew in this version.