Creating the process list (VtList, VxSetVar)
The CreateList procedure
fills in the list of processes to manipulate.
CreateList is defined at the top of the program. As
usual, the parent of the list (``form'') is passed in.
The handle of the created list widget ($list_wid) will be
needed by other procedures and callbacks to perform actions on the list.
Two options to make this widget available are:
the number of rows visible to the user (using -rows 9)
the default callback used when a user double-clicks on a
list item (MenuKillCB, as specified by -defaultCallback)
Either of these would be acceptable for such a small application.
But, for larger applications, use
a special SCO Visual Tcl command that allows for sharing
Declare the variable list_wid to be a global variable.
Pass this list widget as a parameter directly to all
procedures and callbacks needing it.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005