VtWorkingDialog


Create a Working dialog

Syntax

VtWorkingDialog object_name [options]

Description

Creates a Message dialog containing a "working" icon. Returns the widget name.

This dialog box appears with the default push buttons 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. The standard dialog options are available to this widget.

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

Options

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

Example

This code produces a Working dialog box with an OK button and a Help button.

set app [VtOpen "Working Dialog Demo"]

VtWorkingDialog $app.working -message \
        "This is an example \nof VtWorkingDialog" \
        -ok \
        -help

VtShowDialog $app.working
VtMainLoop

This code produces the following:

See also: