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

About keyed lists and the callback structure (cbs)

The cbs uses a special format called a keyed list. Keyed lists are very similar to structures found in C programming. In a keyed list, you access data by referencing fields, or ``keys''.

For instance, the key that you would reference to obtain the handle of the widget that called the callback is widget; the key that you would reference to get the handle of the dialog the widget is on is dialog.

SCO Visual Tcl provides commands to delete, get, list, and set keyed list items:

Here is an example of using cbs in the Kill program:

cbs is tacked onto the end of the callback's parameter list. cbs must be declared when defining callback procedures.


Next topic: Getting the process ID (PID)
Previous topic: Getting the process ID (MenuKillCB)

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