The MENUITEM resource-definition statement creates a menu item.
MENUITEM text, result, [[optionlist]] MENUITEM SEPARATOR
The string can contain the escape characters \t and \a. The \t character inserts a tab in the string and is used to align text in columns. Tab characters should be used only in menus, not in menu bars. (For information on menus, see POPUP Resource.) The \a character aligns all text that follows it flush right to the menu bar or pop-up menu.
Option | Description |
---|---|
CHECKED | Menu item has a check mark next to it. |
GRAYED | Menu item is initially inactive and appears on the menu in gray or a lightened shade of the menu-text color. This option cannot be used with the INACTIVE option. |
HELP | Identifies a help item. |
INACTIVE | Menu item is displayed but it cannot be selected. This option cannot be used with the GRAYED option. |
MENUBARBREAK | Same as MENUBREAK except that for pop-up menus, it separates the new column from the old column with a vertical line. |
MENUBREAK | Places the menu item on a new line for static menu-bar items. For menus, it places the menu item in a new column with no dividing line between the columns. |
The following example demonstrates the use of the MENUITEM and MENUITEM SEPARATOR statements:
MENUITEM "&Roman", 206, CHECKED, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Blackletter", 301