Important: The information in this document is obsolete and should not be used for new development.
SetItemStyle
Use theSetItemStyle
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 thechStyle
parameter. ThechStyle
parameter is a set defined by theStyle
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 thechStyle
parameter.DESCRIPTION
TheSetItemStyle
procedure sets the style of the text of the specified menu item to the style or styles defined by thechStyle
parameter.SEE ALSO
See Listing 3-10 on page 3-60 for examples of setting the style of a menu item.