Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!fernwood!portal!sv!news From: leonardr@svc.portal.com (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: 'mctb' and DA's Message-ID: <1990Dec27.180500.21825@svc.portal.com> Date: 27 Dec 90 18:05:00 GMT References: <1993@asuvax.asu.edu> Sender: news@svc.portal.com Reply-To: leonardr@svc.portal.com (Leonard Rosenthol) Organization: Software Ventures Corporation. Lines: 22 In article <1993@asuvax.asu.edu>, system@asuvax.asu.edu (Marc Lesure) writes: > I have a DA which adds a menu item to the current menu bar. I'd like > the new menu item to be a different color than the rest of the bar, so > I added a 'mctb' resource to it. The problem I have is that the Font/DA > mover resequences the resource numbers of the mctb resource but its internal > data. In other words, once I've added my DA to the system the mctb menu > item no longer points to my menu bar. Does anyone have a solution to this > other than using ResEdit to correct the problem after installing the DA? > > Can the DA itself modify/correct this resource when it's first invoked? How? > I don't see anyway that you will able to solve the problem using an 'mctb' resource due to the problems you've just described, however you may want to consider manually setting the menuColorTable using such calls as SetMCEntries and SetMCInfo (IM V, pg. 239). Hope that helps. -- ---------------------------------------------------------------------- + Leonard Rosenthol | Internet: leonardr@sv.portal.com + + Software Ventures | GEnie: MACgician + + MicroPhone II Development Team | AOL: MACgician1 + ----------------------------------------------------------------------