SetWidgetReference[name,value]
registers a widget with string name in the widget registry for the current interface.
SetWidgetReference
SetWidgetReference[name,value]
registers a widget with string name in the widget registry for 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"]You can use this object to create a new reference to the widget:
ref@SetWidgetReference["myLabel1", obj]Now there are two names, and both reference the same widget:
"WidgetNames" /. GUIInformation[ref]See Also
Tech Notes
Related Guides
Text
Wolfram Research (2007), SetWidgetReference, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/SetWidgetReference.html.
CMS
Wolfram Language. 2007. "SetWidgetReference." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/SetWidgetReference.html.
APA
Wolfram Language. (2007). SetWidgetReference. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/SetWidgetReference.html
BibTeX
@misc{reference.wolfram_2026_setwidgetreference, author="Wolfram Research", title="{SetWidgetReference}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/SetWidgetReference.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_setwidgetreference, organization={Wolfram Research}, title={SetWidgetReference}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/SetWidgetReference.html}, note=[Accessed: 15-June-2026]}