GUIKit`
GUIKit`

GUIObjectQ

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

GUIObjectQ[ref]

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

Details

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

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Create a GUIObject 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]=

See Also

CloseGUIObject  GUIObject  GUIRun  ReleaseGUIObject

Tutorials