::tycho::MenuSupport
-
Source File -
Contents:
public methods
Here is an example:
::tycho::TopLevel .f
::tycho::MenuBar .f.mb
pack .f.mb
.f.mb addMenu File
.f.mb add Close File -command {delete object .f}
.f centerOnScreen
addMenu
name args
-side
side: Specify the side to pack in. Must be either left
(the default) or right.
-before
menu: Pack before the specified menu.
-after
menu: Pack after the specified menu.
-underline
index: Underline the specified character of the label.
Other options are supported: the whole set of options supported
by the Tk menubutton widget are supported, except for the *-text_
and -menu
options.
The above options cannot be changed once the menu has been created. If the specified menu already exists, then this method does nothing.
To specify options of the menu itself,
use the menuconfigure
method. Note that the menu is created with
the menu's -tearoff
option set false.
delete
menu
disable
name
enable
name