setrectanglewidth(
RECT
,
WIDTH
)

The setrectanglewidth( function changes the width of a rectangle, leaving the height unchanged.


Parameters

This function has two parameters:

rect – the original rectangle.

width – new width of the rectangle, in points.


Description

This function changes the width of a rectangle, leaving the height unchanged. This example returns a rectangle with the same height as the current window, but a width of 50 points. This example sets the variable newRect to the height of the current window, but a width of 50 points.

let newRect = setrectanglewidth(info("windowrectangle"),50)

Note: This function is equivalent to:

rectanglesize(rtop(therect),rleft(therect),rheight(therect),thewidth)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.