looks up an existing widget instance using identifier id and return the underlying object.
- To use WidgetReference, you first need to load GUIKit using Needs["GUIKit`"].
- WidgetReference is used to find an existing widget instance and return the underlying object; it never creates a new instance. It is most useful if you want to pass the object from a widget to another function.
- Other interface definition functions can assign names or identifiers to widgets to make them available for lookup.
WidgetReference allows you to use a name to access the underlying object:
It is also possible to call a method of a named widget using InvokeMethod: