Path: utzoo!attcan!uunet!husc6!mailrus!ames!amdahl!pyramid!voder!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: Menu Manager Bug...? Message-ID: <14546@apple.Apple.COM> Date: 23 Jul 88 11:41:26 GMT References: <5005@husc6.harvard.edu> Reply-To: darin@apple.apple.com.UUCP (Darin Adler) Organization: Apple Lines: 29 In article <5005@husc6.harvard.edu> singer@endor.UUCP (Rich Siegel) writes: > ... > > If the window's name begins with a dash (-), the entire menu item is > a gray line. This would be correct behavior if the string was passed > to AppendMenu, but NOT for sSetItem. Inside Macintosh (Volume 1, page 357) > says: > > "SetItem changes the text of the given item to itemString. It doesn't > recognize the metacharacters used in AppendMenu; if you include them in > ItemString, they will appear in the text of the menu item." > > ... > > Is this a new bug, a "feature", or am I completely off base? If you read the section for AppendMenu you will see that the hyphen (-) is *not* one of the meta-characters in the meta-character chart. It is mentioned earlier in the paragraph: "If it begins with a hyphen (-), the item will be a dividing line across the width of the menu." So this is just a misunderstanding (which might have been averted if the above had been repeated in the section describing SetItem). -- Darin Adler AppleLink: Adler4 UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin CSNET: darin@Apple.com