GUIKit`
GUIKit`

SetWidgetReference

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

SetWidgetReference[name,value]

registers a widget with string name in the widget registry for the current interface.

Details

  • To use SetWidgetReference, you first need to load GUIKit using Needs["GUIKit`"].
  • SetWidgetReference is used to define or replace an associated string name with a given widget within the widget registry of the current script or when used with a GUIObject.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

WidgetReference allows you to use a name to access the underlying object:

In[3]:=
Click for copyable input
Out[3]=

You can use this object to create a new reference to the widget:

In[4]:=
Click for copyable input

Now there are two names, and both reference the same widget:

In[5]:=
Click for copyable input
Out[5]=

See Also

WidgetReference  UnsetWidgetReference

Tutorials