"ImageLabel"
GUIKit`
GUIKit`
"ImageLabel"
The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.
Widget["ImageLabel"]
represents an image label.
Details
- To use Widget["ImageLabel"], you first need to load GUIKit using Needs["GUIKit`"].
- Widget["ImageLabel"] is identical in functionality to Widget["Label"], except that it will easily display an image as its label instead of text. Widget["ImageLabel"] is useful when basic image display is needed in a user interface.
- The following properties are available:
-
"path" Null path or URL of the image file 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`"]ref = GUIRun[
Widget["Panel", {
{Widget["ImageLabel", {
"data" -> Script[ExportString[ToBoxes[f[β], TraditionalForm], "GIF"]] }],
Widget["TextField"]}
}]
];GUIScreenShot[ref]ref = GUIRun[
Widget["Panel", {
Widget["Label", {"text" -> "Sample Plot"}],
Widget["ImageLabel", {
"data" -> Script[ExportString[ Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi}], "GIF"]] }]
}]
];GUIScreenShot[ref]