Menus

Menus appear in a menu bar at the top of a window or in a menu bar layout. They may also be attached to any control or layout by using the popupMenu command. Menus contain menu items and can be hierarchical; that is, a menu item can contain another sub-menu of its own. Menus also have commands or scripts attached to them so that when selected some action will occur. While an option menu control (see optionMenu command) may look similar to a menu, it is a control and behaves differently. Furthermore, neither the menu nor menuItem commands are required to construct the contents of an option menu.

For a list of the menus that are available, see the Menus section of the Windows commands.