Creates a new window.
Window
The instance represents a top-level window or dialog box, which contains user-interface elements.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Boolean | read/write | Set to true to make this window active. | |
| String | read/write | Tells the layout manager how unlike-sized children of this container should be aligned within a column or row. | |
| String | read/write | The alignment style for child elements of a container. If defined, this value overrides the alignChildren setting for the parent container. | |
| Bounds | read/write | The bounds of the window's drawable area, excluding the frame, in screen coordinates. | |
| Object | read/write | For windows of type dialog, the UI element to notify when the user presses a cancellation key combination. | |
| Number 0– | read/write | A number of characters for which to reserve space when calculating the preferred size of the window. | |
| Object[] | readonly | The collection of UI elements that have been added to this container. | |
| Object | read/write | For windows of type dialog, the UI element to notify when the user presses a Enter key. | |
| Boolean | read/write | True if this element is enabled. | |
| Bounds | readonly | The bounds of the window frame in screen coordinates. | |
| Point | read/write | The top left corner of the window frame in screen coordinates. | |
| Dimension | readonly | The size and location of the window's frame in screen coordinates. | |
| static | String | readonly | Deprecated. Use ScriptUI.frameworkName instead. |
| ScriptUIGraphics | readonly | The graphics object that can be used to customize the window’s appearance, in response to the onDraw event. | |
| String | read/write | The help text that is displayed when the mouse hovers over the element. | |
| Number 0– | read/write | The number of pixels to indent the element. | |
| String = left | read/write | The default text justification style for child text elements. | |
| LayoutManager | read/write | The layout manager for this container. | |
| Point | read/write | The upper left corner of the window's drawable area. | |
| Number | read/write | The number of pixels between the edges of a container and the outermost child elements. | |
| Boolean | read/write | True if the window is expanded. | |
| Dimension | read/write | The largest rectangle to which the window can be resized. | |
| Boolean | read/write | True if the window is minimized or iconified. | |
| Dimension | read/write | The smallest rectangle to which the window can be resized. | |
| Number = 1.0 | read/write | The opacity of the window, in the range [0..1]. | |
| String | read/write | The layout orientation of children in a container. | |
| — | readonly | The immediate parent element. | |
| Dimension | read/write | The preferred size of the window. | |
| Object | read/write | An object that contains one or more creation properties of the container (properties used only when the element is created). | |
| String | read/write | The keypress combination that invokes this element's onShortcutKey() callback. | |
| Dimension | read/write | The current size and location of the content area of the window in screen coordinates. | |
| Number | read/write | The number of pixels separating one child element from its adjacent sibling element. | |
| String | read/write | The title, label, or displayed text, a localizeable string. | |
| String | readonly | The element type; "dialog", "palette", or "window". | |
| static | Varies | readonly | Deprecated. Use ScriptUI.version instead. |
| Boolean | read/write | When true, the element is shown, when false it is hidden. | |
| Window | readonly | The window that this element belongs to. | |
| Bounds | readonly | The bounds of this window relative to the top-level parent window. |
Methods
Creates and returns a new control or container object and adds it to the children of this window.
Registers an event handler for a particular type of event occuring in this window.
Displays a platform-standard dialog containing a short message and an OK button.
Centers this window on screen or with repect to another window.
Closes this window.
Displays a platform-standard dialog containing a short message and two buttons labeled Yes and No.
Simulates the occurrence of an event in this target.
Use this method to find an existing window.
Hides this windows.
Sends a notification message to all listeners, simulating the specified user interaction event.
An event-handler callback function, called when the window acquires the keyboard focus.
An event-handler callback function, called when the window is about to be closed.
An event-handler callback function, called when the window loses the keyboard focus.
An event-handler callback function, called when the window has been moved
An event-handler callback function, called when the window is being moved
An event-handler callback function, called after the window has been resized
An event-handler callback function, called while a window is being resized
In Windows only, an event-handler callback function, called a shortcut-key sequence is typed that matches the shortcutKey value for this window.
An event-handler callback function, called just before the window is displayed
Displays a modal dialog that returns the user’s text input.
Removes the specified child control from this window’s children array.
Unregisters an event handler for a particular type of event occuring in this window.
Makes this window visible.
Object of 16
Properties elsewhere that hold a Window.
Parameter of 1
Method parameters that accept a Window.
Return 1
Methods that return a Window.