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.