DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Creating an SCO Visual Tcl program -- an overview

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:


MenuKillCB
invoked when Kill Selected is selected from the Process menu

MenuExitCB
invoked when Exit is selected from the Process menu

MenuRefreshCB
invoked when Refresh is selected from the View menu

KillFormOkCB
invoked when OK is chosen from the question dialog
When the user clicks on Cancel in the question dialog, no action should take place. Therefore, a callback is not defined for Cancel.

Callback routines can have any name. The convention typically used is to end callback names with the letters CB (for callback).


Next topic: Coding the supporting routines
Previous topic: The kill program example

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003