Lingo Dictionary > O-R > rect (window) |  |

rect (window)

Syntax

    window whichWindow.rect
    the rect of window whichWindow

Description

Window property; specifies the left, top, right, and bottom coordinates, as a rectangle, of the window specified by `whichWindow`.

If the size of the rectangle specified is less than that of the Stage where the movie was created, the movie is cropped in the window, not resized.

To pan or scale the movie playing in the window, set the `drawRect` or `sourceRect` property of the window.

This property can be tested and set.

Example

This statement displays the coordinates of the window Control Panel:

    put window("Control Panel").rect

See also

`drawRect`, `sourceRect`