+ row += 2;
+
+ addLabel("Input box 2", 1, row);
+ addButton("Cance&llable input box", 35, row,
+ new TAction() {
+ public void DO() {
+ TInputBox in = getApplication().inputBox("Input Box",
+"This is an example of an InputBox.\n" +
+"\n" +
+"Note that the InputBox text can span multiple\n" +
+"lines.\n" +
+"This one has both OK and Cancel buttons.\n",
+ "some input text", TInputBox.Type.OKCANCEL);
+ getApplication().messageBox("Your InputBox Answer",
+ "You entered: " + in.getText() + " and pressed " +
+ in.getResult());
+ }
+ }
+ );