-- Lingo syntaxwindowObjRef.type // JavaScript syntaxwindowObjRef.type;
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 |
#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
dockingEnabled is TRUE and type is set to #document, the MIAW will look and act like a document window in Director. The window will appear in the "view port" area and be dockable with the Stage, Score, and Cast windows, media editors, and message windows. However, the window will not be able to group with any of these windows.
dockingEnabled is TRUE and type is set to #tool, the MIAW will look and act like a tool window in Director. The window will be able to group with all tool windows except the Property inspector and the Tool palette.
dockingEnabled is TRUE and type is set to #fullscreen or #dialog, the type is ignored and the window will be an authoring window.
This statement sets the type of the window named Planets to #tool.
-- Lingo syntax
window("Planets").type = #tool
// JavaScript syntax
window("Planets").type = "tool";
appearanceOptions, displayTemplate, dockingEnabled, titlebarOptions, Window