|
Calling Sequence
|
|
RunWindow(opts)
|
|
Parameters
|
|
opts
|
-
|
equation(s) of the form window=value; specify options for the RunWindow element
|
|
|
|
|
Description
|
|
•
|
The RunWindow command element displays a window defined in the running Maplet application. To display a window defined in a different Maplet application, use the Display function.
|
•
|
There are separate RunDialog and RunWindow command elements because the Window element is intrinsically different from the dialog elements. A dialog has a predefined structure. A Maplet application author can specify options for a dialog, but cannot add elements. A window does not have a predefined structure. A Maplet application author specifies its structure by using elements and options. Also they behave differently. For example, a window can be minimized.
|
•
|
To simplify specifying options in the Maplets package, certain options and contents can be set without using an equation. The following table lists elements, symbols, and types (in the left column) and the corresponding option or content (in the right column) to which inputs of this type are, by default, assigned.
|
Elements, Symbols, or Types
|
Assumed Option or Content
|
|
|
name or string
|
window option
|
|
|
|
|
•
|
A RunWindow element cannot contain other elements.
|
•
|
A RunWindow element can be contained in a Maplet element; in an equation for the onapprove, oncancel, onchange, onclick, ondecline, or onstartup option for an element; or wrapped in an Action element as a parameter in an element that accepts an onchange or onclick option without an equation.
|
•
|
The following table describes the control and use of the RunWindow element options.
|
|
An x in the I column indicates that the option can be initialized, that is, specified in the calling sequence (element definition).
|
|
An x in the R column indicates that the option is required in the calling sequence.
|
|
An x in the G column indicates that the option can be read, that is, retrieved by using the Get tool.
|
|
An x in the S column indicates that the option can be written, that is, set by using the SetOption element or the Set tool.
|
Option
|
I
|
R
|
G
|
S
|
|
|
|
|
|
window
|
x
|
x
|
|
|
|
|
|
|
|
|
|
•
|
The opts argument can contain one or more of the following equations that set Maplet application options.
|
|
window = reference to a Window element (name or string)
|
|
A reference to the window to run.
|
•
|
Note: In the Standard Worksheet, RunWindow displays a window and sets its parent to be the window that is currently running and enabled. If there are no other windows running, then the window does not have a parent. CloseWindow closes a window and also closes its child windows. In the Command-line interface, RunWindow displays a window, but it does not set a parent. CloseWindow closes a window. For more information, see compatibility.
|
|
|
Examples
|
|
In this Maplet application, RunWindow displays a Window element defined in the same Maplet application.
>
|
|
>
|
|
In this Maplet application, Display displays Window elements defined in Maplet applications different from the running Maplet application.
>
|
|
>
|
|
>
|
|
>
|
|
|
|
|