Lingo Dictionary > D-F > drawRect |  |

drawRect

Syntax

    window windowName.drawRect
    the drawRect of window windowName

Description

Window property; identifies the rectangular coordinates of the Stage of the movie that appears in the window. The coordinates are given as a rectangle, with entries in the order left, top, right, and bottom.

This property is useful for scaling or panning movies, but it does not rescale text and field cast members. Scaling bitmaps can affect performance.

This property can be tested and set.

Example

This statement displays the current coordinates of the movie window called Control Panel:

    put the drawRect of window "Control Panel"
    -- rect(10, 20, 200, 300).

Example

This statement sets the rectangle of the movie to the values of the rectangle named movieRectangle`.` The part of the movie within the rectangle is what appears in the window.

    set the drawRect of window "Control Panel" to movieRectangle

Example

The following lines will cause the Stage to fill the main monitor area:

    (the stage).drawRect = the desktopRectList[1]
    (the stage).rect = the desktopRectList[1]

See also

`deskTopRectList`, `rect (window), sourceRect`