VtFormDialog


Create a Form dialog

Syntax

VtFormDialog object_name [options]

Description

Creates a Form dialog, using all the standard Form class options. Returns the name of the widget.

You can specify PushButtons across the bottom of the Form dialog by using the -ok, -cancel and -help options.

Note that when creating a Form dialog, it is advisable to make the dialog the child of another Form. This enables the dialog to inherit attributes such as fonts from its parent.

Note also that you should use VtGetValues to get the widget name of any of the buttons on the bottom of the Form. For example, to get the widget name of the OK button, say:

VtFormDialog form -ok -cancel
set okButton [VtGetValues $form -ok]

For the cancel button, say:

set cancelButton [VtGetValues $form -cancel]

Options

-cancelButton OK | APPLY | RESET | CANCEL | HELP | widget_name (CS)
Sets the widget that is the cancel button for a dialog (that is, the button that is activated when the <Esc> key is pressed).

You can specify one of the tokens OK, APPLY, CANCEL, or HELP to select the appropriate default button created by the Form dialog.

You can nominate a user created PushButton to have cancel button behavior by specifying its widget name.

-wmCloseCallback cmd (C)
Registers a callback for the window manager Close menu item.

See also: