SetItemStyle
Use the SetItemStyle procedure to set the style of the text in a specific menu item.
PROCEDURE SetItemStyle (theMenu: MenuHandle; item: Integer;
chStyle: Style);
theMenu
- A handle to the menu record of the menu containing the menu item whose style you wish to set.
item
- The item number of the menu item. The
SetItemStyle procedure sets the style of the text for this item.
chStyle
- The
SetItemStyle procedure sets the style of the text for this item according to the style described by 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;
-
- You can set the style to one or more of the styles defined by the
Style data type, or you can set it to Plain by specifying an empty set in the chStyle parameter.
DESCRIPTION
The SetItemStyle procedure sets the style of the text of the specified menu item to the style or styles defined by the chStyle parameter.
SEE ALSO
See Listing 3-10 on page 3-60 for examples of setting the style of a menu item.