VtErrorDialog object_name [options]
Creates a Message dialog containing an error icon. Returns the widget name.
By default, three PushButtons are displayed in the ErrorDialog; OK, Cancel and Help.
If you use any of the options -ok, -cancel, -help and -apply, only those PushButtons individually specified by these options or referenced via either a label or a callback option are displayed in the ErrorDialog.
If the user chooses either the OK or Cancel button, the dialog is automatically popped down and destroyed. To override this behavior, the -autoHide and -autoDestroy options can be used.
The following code produces an Error dialog box containing an example message, an OK button and a Help button.
set app [VtOpen "Error Dialog Demo"] VtErrorDialog $app.demo -message \ "This is an example \n of VtErrorDialog" \ -ok \ -help VtShowDialog $app.demo VtMainLoop
This code produces the following:
See also: