window.runtime propertywindow.runtime.flash.display.NativeWindowInitOptions
Runtime Versions:  1.0

The NativeWindowInitOptions class defines the initialization options used to construct a new NativeWindow instance.

The properties defined in the initialization options cannot be changed after a window is created.

Note: For the initial application window created automatically by AIR, all of these properties (except type) are set in the application descriptor. The initial window is always type normal.

See also

NativeWindow
NativeWindowType
NativeWindowSystemChrome


Properties
 PropertyDefined By
  maximizable : Boolean
Specifies whether the window can be maximized.
NativeWindowInitOptions
  minimizable : Boolean
Specifies whether the window can be minimized.
NativeWindowInitOptions
  resizable : Boolean
Specifies whether the window can be resized.
NativeWindowInitOptions
  systemChrome : String
Specifies whether system chrome is provided for the window.
NativeWindowInitOptions
  transparent : Boolean
Specifies whether the window supports transparency and alpha blending against the desktop.
NativeWindowInitOptions
  type : String
Specifies the type of the window to be created.
NativeWindowInitOptions
Public Methods
 MethodDefined By
  
Creates a new NativeWindowInitOptions object.
NativeWindowInitOptions
Property Detail
maximizableproperty
maximizable:Boolean
Runtime Versions:  1.0

Specifies whether the window can be maximized.

For windows with system chrome, this setting will affect the appearance of the window maximize button. It will also affect other parts of the system-managed user interface, such as the window menu on Microsoft Windows.

When set to false, the window cannot be maximized.

Note: On operating systems, such as Mac OS X, in which maximizing a window does not also prevent resizing, both maximizable and resizable must be set to false to prevent the window from being zoomed or resized.

The default value is true.

See also

minimizableproperty 
minimizable:Boolean
Runtime Versions:  1.0

Specifies whether the window can be minimized.

For windows with system chrome, this setting will affect the appearance of the window minimize button. It will also affect other parts of the system-managed user interface, such as the window menu on Microsoft Windows.

When set to false, the window cannot be minimized.

The default value is true.

See also

resizableproperty 
resizable:Boolean
Runtime Versions:  1.0

Specifies whether the window can be resized.

Note: On operating systems, such as Mac OS X, in which maximizing windows is a resizing operation, both maximizable and resizable must be set to false to prevent the window from being zoomed or resized.

The default value is true.

See also

systemChromeproperty 
systemChrome:String
Runtime Versions:  1.0

Specifies whether system chrome is provided for the window.

Chrome refers to the window controls that allow a user to control the desktop properties of a window. System chrome uses the standard controls for the desktop environment in which the AIR application is run and conforms to the standard look-and-feel of the native operating system.

To use chrome provided by a framework (such as Flex), or to provide your own window chrome, set systemChrome to NativeWindowSystemChrome.NONE.

Constants for the valid values of this property are defined in the NativeWindowSystemChrome class:

If not specified, the default value for systemChrome is NativeWindowSystemChrome.STANDARD.

Setting the transparent property to true for a window with system chrome is not supported.

The default value is NativeWindowSystemChrome.STANDARD.

See also

transparentproperty 
transparent:Boolean
Runtime Versions:  1.0

Specifies whether the window supports transparency and alpha blending against the desktop.

If true, the window display is composited against the desktop. Areas of the window not covered by a display object, or covered by display objects with an alpha setting near zero, are effectively invisible and will not intercept mouse events (which will be received by the desktop object below the window). The alpha value at which an object will no longer intercepting mouse events varies between about .06 and .01, depending on the operating system.

Setting the transparent property to true for a window with system chrome is not supported.

The default value is false.

typeproperty 
type:String
Runtime Versions:  1.0

Specifies the type of the window to be created.

Constants for the valid values of this property are defined in the NativeWindowType class:

If not specified, the default value for type is NativeWindowType.NORMAL.

The default value is NativeWindowType.NORMAL.

See also

Constructor Detail
NativeWindowInitOptions()Constructor
function NativeWindowInitOptions()
Runtime Versions:  1.0

Creates a new NativeWindowInitOptions object.

The default values of the newly created object are: