User Guide

Chapter 21540
To specify the window type for a MIAW:
Assign a value for the windowType property.
Different numerical values for the windowType property specify different types of window
styles. When you dont specify a window type, Director uses a movable, sizable window without
a zoom box and with a title bar, which is type -1. You can set the title property only for windows
of type -1.
In most cases, it’s best to specify window settings before you open the window to avoid delays as
the window redraws.
See
windowType in the Lingo Dictionary.
Setting the window size and location for a MIAW
Setting the screen coordinates for a MIAW lets you control the size of the window and where it
appears. Setting the coordinates before the movie appears controls the initial position of the
window; setting them after the window appears moves the window.
To specify the screen coordinates for a MIAW:
Set the rect property to the coordinates of the location where you want the window to appear,
selecting from the following options:
Define the coordinates as a rectangle in this order: left, top, right, and bottom, as shown in the
following statement:
set window.rect "Sample" = [0, 0, 200, 300]
Use the rect() function to define the window rectangle’s four coordinates, as shown in the
following statements:
set aRect = rect(0, 0, 200, 300)
set window.rect "Sample" = aRect
For your convenience, assign the coordinates to a variable and use the variable in your Lingo
statements.
See
rect(window) and rect() in the Lingo Dictionary.
Cropping and scaling a MIAW
You can use Lingo to crop or scale a MIAW.
To crop a MIAW:
Set the rect window property to an area that is smaller than the MIAW. See rect(window) in
the Lingo Dictionary.