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


CheckItem

Use the CheckItem procedure to set the mark of a specific menu item to a checkmark or to remove a mark from a menu item.

PROCEDURE CheckItem (theMenu: MenuHandle; item: Integer;
                     checked: Boolean); 
theMenu
A handle to the menu record of the menu containing the menu item whose mark you wish to set to a checkmark or whose mark you wish to remove.
item
The item number of the menu item.
checked
The CheckItem procedure sets or removes the mark of the item according to the information in the checked parameter.
To set the mark of a menu item to a checkmark, specify TRUE in the checked parameter. To remove a checkmark or any other mark from a menu item, specify FALSE in the checked parameter.
DESCRIPTION
The CheckItem procedure sets the mark of the specified menu item to a checkmark or removes any mark from the menu item.

SEE ALSO
See Listing 3-11 on page 3-61 for examples of setting the mark of a menu item.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996