Creating the question dialog (VtQuestionDialog)
The long command in this example:
-
creates a question dialog, with
VtQuestionDialog(VTCL).
The parent of the dialog is $mainform.
-
displays the message ``Are you sure you want to
kill this process?'' with the -message
option.
-
displays only the OK and Cancel
buttons by using the -ok and -cancel
options.
-
assigns the KillFormOkCB callback to the
OK button.
Because no action is to take place when
the user presses Cancel, no
callback is specified for that button.
Use backslashes (\) to separate
a single command line onto several lines.
Next topic:
Specifying an action when user clicks OK (KillFormOkCB)
Previous topic:
About question dialogs
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003