Creating menu buttons (VtPushButton)
To fill the menus with menu items (buttons)
VtPushButton is called once for each button.
Notice the parents of the buttons: $pm for the Kill Selected
and Exit buttons, $vm for the Refresh buttons.
These parents were defined in the VtPulldown calls shown
previously.
Also notice that:
-
Labels are defined with the -label option.
-
Callbacks (which we will explore later) are specified
with the -callback option.
-
Backslashes (\) are used to continue one line over
multiple lines, as in shell programming.
The trailing right curly brace (}) ends this procedure.
Next topic:
Creating the process list (VtList, VxSetVar)
Previous topic:
Creating the menu bar (VtMenuBar)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003