GUIObjectQ

GUIObjectQ[ref]
returns True if ref is an active GUIObject and otherwise returns False.

DetailsDetails

  • To use , you first need to load GUIKit using Needs["GUIKit`"].
  • is used to determine whether ref represents a live interface.
  • Live interfaces are typically terminated either when the user closes the window by calling CloseGUIObject or ReleaseGUIObject.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Create a instance and assign it to a variable:

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

With the interface still running, test whether the variable references an active GUIObject:

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

Force the interface to terminate and release its resources:

In[4]:=
Click for copyable input

Test whether the variable still references an active GUIObject:

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