"Icon"
GUIKit`
GUIKit`
"Icon"
The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.
Widget["Icon"]
represents an icon.
Details
- To use Widget["Icon"], you first need to load GUIKit using Needs["GUIKit`"].
- Many widgets take an "icon" 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" Null path or URL of the icon image in GIF, JPEG, or PNG format "data" image data the image data - The "data" property can be given as a String or as Script[ExportString[…,format,options]], where format is "GIF", "JPEG", or "PNG".
Examples
Basic Examples (1)
Needs["GUIKit`"]Display an icon from the filesystem:
ref = GUIRun[
Widget["Button", {
"text" -> "Stop",
"icon" -> Widget["Icon", {"path" -> "Wolfram/Example/Stop16.gif"}]
} ]
];GUIScreenShot[ref]Display an icon generated by ExportString:
ref = GUIRun[Widget["Panel", {Widget["Button", {"icon" -> Widget["Icon", {"data" -> Script[ExportString[ToBoxes[a + (b/c^4)], "GIF"]]}]}]}]]GUIScreenShot[ref]