var dialog = new Dialog;
dialog.caption = "Name reading dialog";
dialog.okButtonText = "Done"
dialog.cancelButtonText = "Abort";
var first = new LineEdit;
first.label = "First name: ";
dialog.add( first );
var last = new LineEdit;
last.label = "Last name: ";
dialog.add( last );
if( dialog.exec() ) {
var fullName = last.text + ", " + first.text;
print( "Full name is: " + fullName );
}
Below is a list of the classes available from the Input Dialog
Framework. Each class has a short description and a list of its
properties and functions.
For String properties the default is an empty string, and for Number
properties the default is 0, unless stated otherwise.

checked : Boolean; This property holds whether the checkbox is checked. The default is unchecked, i.e. false.
text : String; This property holds the text shown on the button.
tooltip : String; This property holds the tool tip (balloon help) for the widget.
whatsThis : String; This property holds a simple description of the widget.