GUIKIT PACKAGE TUTORIAL

XML Syntax

Interface definitions can be defined using either a Wolfram Language expression or an XML definition. For many usages, the Wolfram Language syntax is preferred. However, in cases where you want to launch GUIs before the Wolfram Language has been launched, the XML definition is useful.

Import and Export

You can work with the XML definition for GUIKit interfaces from within the Wolfram Language using the Import/Export format type . The package adds support for this format type so that you can convert between the Wolfram Language and the XML formats.

In[105]:=
Click for copyable input

Knowing that $GUIPath provides access to all your interfaces, you can use this to easily import XML definitions into the Wolfram Language as the equivalent expression format.

Here is what the contents of the XML file looks like for your base frame definition.

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

Here is that same definition imported as the Wolfram Language expression.

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

You can easily switch between the XML or expression format and can even use the SymbolicXML expression in your calls to GUIRun or GUIRunModal.

In[106]:=
Click for copyable input
In[107]:=
Click for copyable input
Out[107]=

Here is a screen shot of what the previous definition renders.

In[108]:=
Click for copyable input
Out[108]=
In[7]:=
Click for copyable input
Out[7]=
In[8]:=
Click for copyable input
In[9]:=
Click for copyable input
Out[9]=
In[10]:=
Click for copyable input
Out[10]=

The GUIKit deployment functions can also take the SymbolicXML definition forms as direct input.

In[11]:=
Click for copyable input