The menu bar is a menu which, in conjunction with its associated pulldown menus, enables the user to select an action from a list of valid actions, to be applied to a selected object or group of objects displayed in a window. The following guidelines should be followed in the design and layout of the menu bar, for the purpose of consistency and ergonomic behavior:
The SAA CUA guidelines stipulate that each standard window has a menu bar, which contains actions specific to the object represented by that window. However, certain actions may be inapplicable at certain points during application execution. If an action is not necessarily applicable at all stages of processing or for all data objects displayed within a window, that action should remain in the menu bar or pulldown menu, but should be disabled (that is, made non-selectable) until the point at which the action is valid.
Selection of a valid menu bar or pulldown menu item should result in the immediate performance of the action, or the display of a dialog box to obtain necessary information before performance of the requested action may take place. Selection of an invalid menu bar or pulldown menu item will result in a "beep" and the continued display of the pulldown. The menu bar and pulldown menus are discussed in the IBM Systems Application Architecture CUA Advanced Guide to User Interface Design and the IBM Systems Application Architecture CUA Advanced Interface Design Reference.
Presentation Manager provides mechanisms to achieve the insertion/deletion and enabling/disabling of menu bar items, as explained in the following sections.