| bgAlpha | The alpha to apply when merging the existing view with bgColor. 0 paints it over with bgColor, 1 leaves the existing view unmodified. Default is 0.4. |
| bgColor | The color to paint over the existing view before drawing the dialog. If null, the existing background is not modified. Default is white. |
| box:abguibase.Box | The box for the dialog widgets. |
| cancelButton:abgui.Button | The "Cancel" button. |
| initialFocus:abguibase.Widget | The widget which should get the initial focus, null to keep the last focus. |
| okButton:abgui.Button | The "OK" button. |
| handled(event) | [Inherited comment] Handle an ui.cmd() event, or have a child handle it. |
| run() | "Run" the dialog, i.e. show it and wait for ok or cancel. |
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.
Here is a complete example: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