Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!ogccse!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: SetItemStyle in LSC Keywords: Using predifined "Style" Message-ID: <1515@husc6.harvard.edu> Date: 31 Mar 89 03:57:45 GMT References: <4747@charon.unm.edu> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Distribution: usa Organization: Symantec/THINK Technologies, Bedford, MA Lines: 23 In article <4747@charon.unm.edu> stone@hydra.unm.edu (Andrew Stone CS.DEPT) writes: > >IM I-360 suggests an example SetItemStyle(thismenu,1,[bold,italic]); > >How do I do this in C? I tried enum, casting to type (Style),etc, recieving According to , the enumeration is called "Style". Since sets per se aren't supported in C, you get the same effect by adding (or subtracting) the constants corresponding to the members. Therefore, the call is SetItemStyle(thismenu, 1, bold+italic); --Rich ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "She told me to make myself comfortable, so I pulled down my pants and sat in the pudding." -Emo Phillips ~~~~~~~~~~~~~~~