Close Window - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Maplets[Elements]

  

CloseWindow

  

close a window in a Maplet application

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CloseWindow(opts)

Parameters

opts

-

equation(s) of the form window=value; specify options for the CloseWindow element

Description

• 

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

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.

Examples

withMapletsElements:

mapletMapletonstartup=A1,WindowW11,ButtonRun New Window,RunWindowW2,ButtonExit,Shutdown1,WindowW22,ButtonClose This Window,CloseWindowW2,ButtonExit,Shutdown2,ActionA1RunWindowW1:

MapletsDisplaymaplet

See Also

Maplets/CommandElements

Maplets[Display]

Maplets[Elements]

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