type (Window)

Usage

-- Lingo syntax
windowObjRef.type

// JavaScript syntax
windowObjRef.type;

Description

Window property; specifies the window type. Read/write.

If the type property is set, all properties pertaining to the new window are set accordingly.

This property can be one of the following values:

Property Description
#document

Specifies that the window will appear with a standard title bar, a close box, a minimize box, and a maximize box. These types of windows can be moved.

#tool

Specifies that the window will appear with a shorter title bar and only a small close box in the upper right corner. These types of windows no longer receive activate or deactivate events, because #tool windows are always active. These types of windows will always later with each other, and will always appear on top of #document windows.

#dialog

Specifies that the window will appear with a standard title bar, a close box, and no icon. These types of windows are modal, and will always appear on top of all other windows.

These properties can also be accessed by using the Movie object's displayTemplate property.

Window behaviors also depend on the values of the type property and the Movie object's dockingEnabled property

Example

This statement sets the type of the window named Planets to #tool.

-- Lingo syntax
window("Planets").type = #tool

// JavaScript syntax
window("Planets").type = "tool";

See also

appearanceOptions, displayTemplate, dockingEnabled, titlebarOptions, Window