Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 3 - Menu Manager / Menu Manager Reference
Menu Manager Routines / Getting and Setting the Appearance of Menu Items


GetItemMark

Use the GetItemMark procedure to get the mark of a specific menu item or the menu ID of the submenu associated with the menu item.

PROCEDURE GetItemMark (theMenu: MenuHandle; item: Integer;
                        VAR markChar: Char); 
theMenu
A handle to the menu record of the menu containing the menu item whose mark or submenu you wish to get.
item
The item number of the menu item. The GetItemMark procedure returns the mark of this item or, if this item has a submenu associated with it, returns the menu ID of the submenu in the markChar parameter.
markChar
The GetItemMark procedure returns the mark or the submenu of this item in the markChar parameter. A menu item can have a mark or a submenu attached to it, but not both. If this menu item has a marking character, the GetItemMark procedure returns the mark. If this menu item has a submenu associated with it, the GetItemMark procedure returns the menu ID of the submenu. If the item doesn't have a mark or
a submenu, GetItemMark returns 0 in this parameter.
DESCRIPTION
If the item has a mark or submenu, the GetItemMark procedure returns the mark or the menu ID of the submenu of the specified menu item in the markChar parameter (or 0 if the item doesn't have a mark or a submenu).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996