Dialog Style Samples
Dialog Style Samples
The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.
Modal OK/Cancel Dialog
Needs["GUIKit`"];ref = GUIRun[
Widget["Panel", {
WidgetGroup[{
Widget["Panel", WidgetLayout -> {"Stretching" -> {Maximize, Maximize} }]
}, WidgetLayout -> { "Border" -> "Content" }],
{
WidgetFill[],
Widget["Button", {"text" -> "OK"}],
Widget["Button", {"text" -> "Cancel"}]
}
}]
]GUIScreenShot[ref]Input-Header, Output-Body
Needs["GUIKit`"];ref = GUIRun[
Widget["Panel",
{
{Widget["Label", {"text" -> "File"}],
Widget["TextField", {"columns" -> 10}],
Widget["Button", {"text" -> "Select"}]
},
Widget["Label", {"text" -> "Display File"}],
Widget["TextArea", {"text" -> "File contents here."}]
}]
]GUIScreenShot[ref]