|
SOLUTIONS
|
GUIKIT PACKAGE SYMBOL
WidgetReference
WidgetReference[id]
looks up an existing widget instance using identifier id and return the underlying object.
DetailsDetails
- To use
, you first need to load GUIKit using Needs["GUIKit`"].
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.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
| In[1]:= |
| In[2]:= |
| Out[2]= |
WidgetReference allows you to use a name to access the underlying object:
| In[3]:= |
| Out[3]= |
With the underlying object you can call methods that are not exposed as properties:
| In[4]:= |
| Out[4]= |
It is also possible to call a method of a named widget using InvokeMethod:
| In[5]:= |
| Out[5]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

