Specifying an action when user clicks OK (KillFormOkCB)
The KillFormOkCB callback takes three parameters:
-
the process id (pid)
-
the main form (mainForm)
-
the keyed list (cbs, as required at the end of a callback's
parameter list)
To kill the process,
exec(TCL)
runs the
kill -9 command on the process ID contained in pid.
In real practice, a catch would typically be placed
around this command.
Next,
VxGetVar(VTCL)
gets the handle of the list widget, and calls the
DoRefresh procedure to update the list.
Next topic:
Updating process list in response to user (MenuRefreshCB)
Previous topic:
Creating the question dialog (VtQuestionDialog)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003