VtWarningDialog(VTCL)

VtWarningDialog(VTCL)


VtWarningDialog -- create message dialog containing warning icon, return widget name

Syntax

VtWarningDialog object_name [options]

Description

Creates a Message Dialog which has a ``warning'' icon in it. (The standard Dialog options are used to configure the dialog box.) Returns the widget name.

This dialog box comes up with the default pushbuttons OK, Cancel and Help. To override the default buttons, -ok, -cancel, and -help can be used to specify which buttons go in the dialog. If any one of these options is used then it is assumed that only buttons which have been individually specified or referenced via either a label or a callback option will be put in the dialog.

If the user chooses either the OK or Cancel button, the dialog is automatically popped down and destroyed. Use the -autoHide or -autoDestroy options to override this default.

For example:

set msg [VtWarningDialog $but.msg -message "Warning!"]
VtShow $msg 

Options

-message string (CSG)
Sets the text of the message. Use ``\n'' to separate lines.

See also