Defining the callbacks
The graphic above shows what callbacks are needed; namely,
one for each button that can be pushed and for which we
want a callback. These callbacks are:
When the user clicks on Cancel in
the question dialog, no action should take place.
Therefore, a callback is not defined for Cancel.
Kill Selected is selected from the Process menu
Exit is selected from the Process menu
Refresh is selected from the View menu
OK is chosen from the question dialog
Callback routines can have any name. The convention typically
used is to end callback names with the letters CB (for callback).
Coding the supporting routines
The kill program example
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003