Create a menu with the Menu method, to be displayed later with the post method.
$menu = $parent->Menu(options)
The standard configuration options that apply to Menu are: -activebackground, -activeforeground, -background, -bg, -borderwidth, -bw, -cursor, -disabledfore-ground, -font, -foreground, -fg, -relief, and -takefocus.
Other options are:
Menus have indexes for manipulating individual menu items. They are:
In addition to configure and cget, the following methods are defined for the Menu widget:
$menu = $mainwindow->Menu; $menu->add( 'command', -label => "New", "-command" => \&newfile );
Copyright © 2002 O'Reilly & Associates. All rights reserved.