Documentation
Solutions
GUIKit
Widget Gallery
Widget Gallery
The following pages provide a visual tour of the possible user interface widgets available, as well as sample expressions representing common user interface design patterns that you can reuse and modify for specific needs.
Entry template:
Widget["name"]
Properties
"propertyName"
value
...
Events
"eventName" - description of when this event is triggered
...
Methods
InvokeMethod["methodName", arg1, arg2, ...] - description of what this method will do
Each entry begins with the listing of the string name identifier used when defining a new instance of a widget using the following form. Widget["name", {child widgets, scripts, bindevents, ...}, options]
The next sections list a few of the most common properties, events, and calls that this widget provides.
Property names are used with the forms PropertyValue["propertyName"], SetPropertyValue["propertyName", value], and the shorthand form of SetPropertyValue, "propertyName"
value. All possible property names available to a widget can be discovered using GUIInformation[runtime, widget, "PropertyNames"]. Additionally, all possible forms for settable (writable) property values, including the datatypes of the property can be found by using GUIInformation[runtime, widget, "SetPropertyValuePatterns"] or GUIInformation[runtime, widget, "VerboseSetPropertyValuePatterns"]. Gettable (readable) property values are returned with GUIInformation[runtime, widget, "PropertyValuePatterns"].
Event names are used with the form BindEvent["eventName", Script[...]] to set up execution of script code when the event occurs. All possible event names available to a widget can be discovered using GUIInformation[runtime, widget, "EventNames"].
There may also be common InvokeMethod forms that are used to execute functions on widgets with possible multiple arguments included. All possible method names available to a widget can be discovered using GUIInformation[runtime, widget, "MethodNames"]. Additionally, all possible forms for invoking a method, including the datatypes of the method parameters can be found by using GUIInformation[runtime, widget, "InvokeMethodPatterns"] or GUIInformation[runtime, widget, "VerboseInvokeMethodPatterns"].