Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: SetItemStyle in LSC Message-ID: <2302@helios.ee.lbl.gov> Date: 30 Mar 89 19:05:56 GMT Sender: usenet@helios.ee.lbl.gov Lines: 28 References: <4747@charon.unm.edu> Sender: Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Followup-To: Distribution: usa Organization: Lawrence Berkeley Laboratory, Berkeley Keywords: Using predifined "Style" In article <4747@charon.unm.edu> stone@hydra.unm.edu (Andrew Stone CS.DEPT) writes: > Here is an easy one that is baffling me: I am using LSC3.x and want to >change a menu item's style with the SetItemStyle(MenuHandle,int,Style) routine. > >IM I-360 suggests an example SetItemStyle(thismenu,1,[bold,italic]); > >How do I do this in C? > SetItemStyle(thismenu,1,bold+italic); does the trick. You construct a style by adding the various attribute constants together. Hope that helps. +----------------------------------------------------------------+ \ Patrick Beard "Badges? \ \ Berkeley Systems, Inc. I ain't got to show you... \ \ PCBeard@lbl.gov ...NO STINKING BADGES!" \ + ---------------------------------------------------------------+