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.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005