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


GetMenuItemText

Use the GetMenuItemText procedure to get the text of a specific menu item. The GetMenuItemText procedure is also available as the GetItem procedure.

PROCEDURE GetMenuItemText (theMenu: MenuHandle; item: Integer;
                           VAR itemString: Str255); 
theMenu
A handle to the menu record of the menu containing the menu item whose text you wish to get.
item
The item number of the menu item. The GetMenuItemText procedure returns the text of this item.
itemString
The GetMenuItemText procedure returns the text of the menu item in this parameter.
DESCRIPTION
The GetMenuItemText procedure returns the text of the specified menu item in the itemString parameter. Use other Menu Manager routines to get information about
the other characteristics of a menu item.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996