Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!isgate!krafla!aries From: aries@rhi.hi.is (Reynir Hugason) Newsgroups: comp.sys.mac.programmer Subject: Re: Drawing in the Menu bar Message-ID: <1870@krafla.rhi.hi.is> Date: 25 Jul 90 18:09:51 GMT References: <37238@shemp.CS.UCLA.EDU> <9377@goofy.Apple.COM> Organization: University of Iceland Lines: 27 >>I'm sure that this has been tossed around here before, but I guess I missed >>it. How do you draw in the menu bar? I am writing an INIT that will put >>a SICN up in the menu bar (like OnCue, Multifinder, EasyAccess, etc...). >>I have set the port to the wMgrPort, and tried to CopyBits to it, but >>it is getting clipped. Trying to change the ClipRect seems to have no >>effect. Am I missing something obvious? How do all you guys do it? >Setting the clipRect to the full screen doesn't do it (I haven't tried that)? >I've just created a private GrafPort and set the clipRect to full screen and >then drawn whatever I want. I don't think I've had to do anything more >special than that... If you feel that you really, really, really ... really must draw in the wMgrPort then you can do the following: Fetch the current visRgn and store it. Create a new visRgn, which covers the entire screen. Draw to your heart's content. Dispose of your visRgn and restore the old one. But remember on future systems your program will probably be singing LA BOMBA, so don't use the wMgrPort - open up your own! You have been warned. --- Mimir (aries@rhi.hi.is) - Aries, Inc.