pathName [option value...]
The menu command creates a new menu widget named
pathName. A menu is a top-level window that displays a collection of one-line entries arranged in one or more columns. Several different types of menu entries exist and can be combined in a single menu.
- -postcommand command
Command to evaluate each time the menu is posted.
Color to display in the indicator when menu entries of type
Whether the menu should include a tear-off entry at the top.
Command to evaluate whenever menu is torn off. The menu widget’s name and the name of the window for the torn-off menu are appended as the last two arguments.
String to use as a title for the window created when the menu is torn off.
Typemust be menubar,
normal. Can only be set at menu’s creation.
Several menu widget methods support the notion of an
index for identifying a particular entry
position within the menu. Indices have the following form:
The entry numerically, where 0 is the topmost entry.
The entry that is currently active.
The bottommost ...