InvokeMethod


calls a widget method on the wrapping contexted widget.


calls a widget method on the specified target widget.

DetailsDetails

  • To use , you first need to load GUIKit using Needs["GUIKit`"].
  • can be used to make a method call on a widget, with arguments to the call specified by content.
  • If no target argument exists, then the target of the method call is the wrapping widget instance.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

Run a simple widget definition:

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

Invoke a method that returns the x coordinate:

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

Specify arguments to a method call that changes the size of the frame:

In[5]:=
Click for copyable input
In[6]:=
Click for copyable input
Out[6]=
New to Mathematica? Find your learning path »
Have a question? Ask support »