SetWidgetReference


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

DetailsDetails

  • To use , you first need to load GUIKit using Needs["GUIKit`"].
  • 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.

ExamplesExamplesopen allclose all

Basic Examples (1)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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »