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.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004