Section 7.2.2.1 on page 88 described buttons that are all displayed in windows on the screen. For each of those buttons, there is an analogous type of button that is displayed as an item in a menu.
The <push-menu-button> class is used to create a standard menu item. This class is the menu-specific equivalent to <push-button>.
Like push buttons, you can make a given push menu button the default command in a menu by specifying the default?: init-keyword. The label for a default menu button is highlighted in the menu that it is displayed in, usually by displaying the label using a bold font.
|
The <radio-menu-button> class is used to create a menu item that has the properties of a radio button. The value of a radio menu button may be toggled on and off, just like a radio button, and from any group of radio menu buttons, only one may be on at any one time.
In appearance, a selected radio menu button is usually shown with a small dot to the left of the command name on the menu.
|
As with radio buttons, radio menu buttons are most useful when used in group form. The class <radio-menu-box> is provided for this purpose. See Section 7.2.3.3 on page 96 for more details.
The <check-menu-button> class is used to create a menu item that has the properties of a check button. The value of a check menu button may be toggled on and off, just like a check button, by repeatedly choosing the menu item. In a group of check menu buttons, any number may be on at any one time.
In appearance, a selected check menu button is usually shown with a check mark to the left of the command name on the menu.
|
For more information about creating menus, see Chapter 4, "Adding Menus To The Application".