GUIKit`
GUIKit`

CloseGUIObject

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

CloseGUIObject[interface]

closes a live GUIObject instance.

CloseGUIObject[]

requests that an interface close when called within a Script block.

Details and Options

  • To use CloseGUIObject, you first need to load GUIKit using Needs["GUIKit`"].
  • CloseGUIObject programmatically initiates a close action (which is normally initiated interactively by user actions such as closing the window).
  • CloseGUIObject will not necessarily force the removal of all interface resources (like ReleaseGUIObject) if an initial GUIRun has requested that the interface live on past its closing by using the option ReleaseMethod -> Manual.
  • Use CloseGUIObject instead of ReleaseGUIObject to ensure the original life cycle intent of a GUIRun call.

Examples

open allclose all

Basic Examples  (1)

Create a live interface object:

Verify that the interface is active:

Request that the window close:

Confirm that the interface is no longer valid:

Scope  (1)

Create an interface that stays active after being closed:

Request that the window close:

Verify that the interface is still active:

Force complete termination of the interface:

Verify that the interface is no longer active:

Wolfram Research (2007), CloseGUIObject, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html.

Text

Wolfram Research (2007), CloseGUIObject, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html.

CMS

Wolfram Language. 2007. "CloseGUIObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html.

APA

Wolfram Language. (2007). CloseGUIObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html

BibTeX

@misc{reference.wolfram_2022_closeguiobject, author="Wolfram Research", title="{CloseGUIObject}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html}", note=[Accessed: 03-July-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_closeguiobject, organization={Wolfram Research}, title={CloseGUIObject}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html}, note=[Accessed: 03-July-2022 ]}