GUIKIT PACKAGE
{}

"Icon"

Widget["Icon"]
represents an icon.

DetailsDetails

  • To use Widget["Icon"], you first need to load GUIKit using Needs["GUIKit`"].
  • Many widgets take an property, such as buttons and menu items, and so a Widget["Icon"] instance would be used when setting an icon property on another widget.
  • The following properties are available:
  • "path"Nullpath or URL of the icon image in GIF, JPEG, or PNG format
    "data"image datathe image data
  • The property can be given as a String or as Script[ExportString[,format,options]], where format is , , or .

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Display an icon from the filesystem:

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

Display an icon generated by ExportString:

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