Important: The information in this document is obsolete and should not be used for new development.
SetItemMark
Use theSetItemMark
procedure to set the mark of a specific menu item or to change or set the submenu associated with a menu item.
PROCEDURE SetItemMark (theMenu: MenuHandle; item: Integer; markChar: Char);
theMenu
- A handle to the menu record of the menu containing the menu item whose mark or submenu you wish to set.
item
- The item number of the menu item. The
SetItemMark
procedure sets the mark or the submenu of this item.markChar
- The
SetItemMark
procedure sets the mark or submenu of this item according to the information in themarkChar
parameter.- To set the mark of a menu item, specify the marking character in the
markChar
parameter. You can also use one of these constants to specify that the item has no mark, has a checkmark as the marking character, or has the diamond symbol as the marking character:CONST
noMark = 0; {no marking character}
checkMark = $12; {checkmark}
diamondMark = $13; {diamond symbol}- To set the submenu associated with this menu item, specify the menu ID of the submenu in the
markChar
parameter.DESCRIPTION
TheSetItemMark
procedure sets the mark or the submenu of the specified menu item.SEE ALSO
See Listing 3-11 on page 3-61 for examples of setting the mark of a menu item.