UnsetWidgetReference[name]
removes a widget from the registry with a name in the current interface.
UnsetWidgetReference
UnsetWidgetReference[name]
removes a widget from the registry with a name in the current interface.
Examples
Basic Examples (1)
Needs["GUIKit`"]ref = GUIRun[
Widget["Panel", {
Widget["Label", {"text" -> "Hello World!"}, Name -> "myLabel"]
} ]
]WidgetReference allows you to use a name to access the underlying object:
obj = ref @ WidgetReference["myLabel"]This removes the name for the widget:
ref@UnsetWidgetReference["myLabel"]Now there are no named widgets:
"WidgetNames" /. GUIInformation[ref]See Also
Tech Notes
Related Guides
Text
Wolfram Research (2007), UnsetWidgetReference, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html.
CMS
Wolfram Language. 2007. "UnsetWidgetReference." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html.
APA
Wolfram Language. (2007). UnsetWidgetReference. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html
BibTeX
@misc{reference.wolfram_2026_unsetwidgetreference, author="Wolfram Research", title="{UnsetWidgetReference}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_unsetwidgetreference, organization={Wolfram Research}, title={UnsetWidgetReference}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html}, note=[Accessed: 15-June-2026]}