Important: The information in this document is obsolete and should not be used for new development.
SetItemStyle
Use theSetItemStyleprocedure 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
SetItemStyleprocedure sets the style of the text for this item.chStyle- The
SetItemStyleprocedure sets the style of the text for this item according to the style described by thechStyleparameter. ThechStyleparameter is a set defined by theStyledata 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
Styledata type, or you can set it to Plain by specifying an empty set in thechStyleparameter.DESCRIPTION
TheSetItemStyleprocedure sets the style of the text of the specified menu item to the style or styles defined by thechStyleparameter.SEE ALSO
See Listing 3-10 on page 3-60 for examples of setting the style of a menu item.