GUIKit Example: Symbol Listing
GUIKit Example: Symbol Listing
The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.
Needs["GUIKit`"]def = Widget["Panel", {
"preferredSize" -> Widget["Dimension", {"width" -> 150, "height" -> 200}],
{Widget["TextField", {"text" -> "Plot*",
PropertyValue[{"myText", "document"}, Name -> "myDocument"],
BindEvent[{"myDocument", "document"},
Script[ updateItems[]], InvokeThread -> "New"]
}, Name -> "myText"],
Widget["CheckBox", {"text" -> "Ignore Case", "selected" -> False,
BindEvent["action",
Script[ updateItems[]], InvokeThread -> "New"]}, Name -> "ignoreSwitch"]},
Widget["ScrollPane", {"viewportView" -> Widget["List", {}, Name -> "myList"]}],
Script[
updateItems[] := SetPropertyValue[{"myList", "items"},
Names[PropertyValue[{"myText", "text"}], IgnoreCase -> PropertyValue[{"ignoreSwitch", "selected"}]],
InvokeThread -> "Dispatch"];
updateItems[]
]
}];SymbolListingDialog[] := GUIRun[def];Example
This example displays a modeless dialog that shows how to auto-event from text field changes. Specifically, this provides a simple interface for the Names[] function and populates a list widget with the current matching symbols.
SymbolListingDialog[];