The following properties are taken from abguibase.theme:
Once the dialog has been set up, Dialog.run() shows it to the user and waits for ok or cancel to be pressed before returning to the previous view.
query:abdialog.Dialog=abdialog.Dialog(2); query.box.add(gui.Label("Name:", gui.RIGHT|gui.VCENTER)); name:gui.TextField=gui.TextField() query.box.add(name); query.setCentered(); // optional if query.run() then print name.text+" was entered" end