VtFormDialog object_name [options]
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]
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.
See also: