GUIKit`
GUIKit`

ReleaseGUIObject

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

ReleaseGUIObject[obj]

closes and terminates all resources of a live GUIObject instance.

更多信息和选项

  • To use ReleaseGUIObject, you first need to load GUIKit using Needs["GUIKit`"].
  • ReleaseGUIObject programmatically ends an interface's session (which is normally ended interactively by user actions such as closing the window), both closing and disposing of all related resources.
  • ReleaseGUIObject forces the termination of interface resources even if an initial GUIRun might have 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.

范例

打开所有单元关闭所有单元

基本范例  (1)

Create a live interface object:

Verify that the interface is active:

Remove its resources:

Confirm that the interface is no longer valid:

Scope  (2)

Create a modeless live interface object:

Shut it down:

Verify that the interface is no longer valid:

Create a modeless live interface object, specifying a manual ReleaseMethod:

Attempt to close the interface:

Test whether the interface is still valid:

Terminate the interface:

Verify that it is no longer valid:

Wolfram Research (2007),ReleaseGUIObject,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.

文本

Wolfram Research (2007),ReleaseGUIObject,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.

CMS

Wolfram 语言. 2007. "ReleaseGUIObject." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html.

APA

Wolfram 语言. (2007). ReleaseGUIObject. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html 年

BibTeX

@misc{reference.wolfram_2024_releaseguiobject, author="Wolfram Research", title="{ReleaseGUIObject}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_releaseguiobject, organization={Wolfram Research}, title={ReleaseGUIObject}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/ReleaseGUIObject.html}, note=[Accessed: 18-November-2024 ]}