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


GetItemStyle

Use the GetItemStyle procedure to get the style of the text in a specific menu item.

PROCEDURE GetItemStyle (theMenu: MenuHandle; item: Integer;
                        VAR chStyle: Style); 
theMenu
A handle to the menu record of the menu containing the menu item whose style you wish to get.
item
The item number of the menu item. The GetItemStyle procedure returns the style of the text for this item.
chStyle
The GetItemStyle procedure returns the style of the text for this item in the chStyle parameter. The chStyle parameter is a set defined by the Style data type.
TYPE
StyleItem = (bold, italic, underline, outline,
shadow, condense, extend);
Style = SET OF StyleItem;
DESCRIPTION
The GetItemStyle procedure returns the style of the text of the specified menu item in the chStyle parameter. The returned style can be one or more of the styles defined by the Style data type, or it is the empty set if the style of the text is Plain.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996