Maplets[Elements]
CloseWindow
close a window in a Maplet application
Calling Sequence
Parameters
Description
Examples
CloseWindow(opts)
opts
-
equation(s) of the form window=value; specify options for the CloseWindow element
The CloseWindow command element closes a window in a running Maplet application.
A window is a Maplet application element. A window should not be thought of as a Maplet application, but rather as one element within a Maplet application. A Maplet application can contain more than one window. Each window can contain many elements that control the layout and function of the window.
A CloseWindow element cannot contain other elements.
A CloseWindow 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 CloseWindow 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
The opts argument can contain one or more of the following equations that set Maplet application options.
window = reference to Window element (name or string)
The reference to the window to be closed.
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.
with⁡MapletsElements:
maplet≔Maplet⁡onstartup=A1,WindowW1⁡1,Button⁡Run New Window,RunWindow⁡W2,Button⁡Exit,Shutdown⁡1,WindowW2⁡2,Button⁡Close This Window,CloseWindow⁡W2,Button⁡Exit,Shutdown⁡2,ActionA1⁡RunWindow⁡W1:
MapletsDisplay⁡maplet
See Also
Maplets/CommandElements
Maplets[Display]
Maplets[Elements][Action]
Maplets[Elements][Button]
Maplets[Elements][Maplet]
Maplets[Elements][RunWindow]
Maplets[Elements][SetOption]
Maplets[Elements][Shutdown]
Maplets[Elements][Window]
Maplets[Tools][Get]
Maplets[Tools][Set]
Overview of Maplet Applications
Download Help Document