appearanceOptions

Usage

-- Lingo syntax
windowObjRef.appearanceOptions

// JavaScript syntax
windowObjRef.appearanceOptions;

Description

Window property; specifies a list of properties that stores the appearance options of a window. Read/write.

The property list contains the following properties.

Property Description

#mask

Specifies the 1-bit cast member to use as a mask for the window.

#border

Specifies the type of border for the window. This property can be one of three values:

  • #none. Specifies no border around the window.
  • #line. Specifies a 1-pixel black border around the window.

The #none and #line properties are only effective if the titlebarOptions.visible property is set to FALSE.

#metal

(Macintosh only) Specifies whether the window should have a metal look (TRUE). If FALSE, the window will have an ice look.

#dragRegionMask

Specifies the 1-bit cast member to use as a mask for a region of the window.

#shadow

(Macintosh only) Specifies whether the window should have a shadow. Macintosh windows typically have a shadow.

#liveresize

(Macintosh only) Specifies whether the window should have live resizing. If TRUE, live resizing is enabled. If FALSE, live resizing is disabled.

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

Example

This statement displays in the Message window all current appearance options for the window named Control Panel:

-- Lingo syntax
put(window("Control Panel").appearanceOptions)

// JavaScript syntax
put(window("Control Panel").appearanceOptions);

This statement sets the border property to display a 1-pixel border around the window named Control Panel:

-- Lingo syntax
window("Control Panel").appearanceOptions.border = #line

// JavaScript syntax
window("Control Panel").appearanceOptions.border = "line";

See also

displayTemplate, titlebarOptions, visible, Window