Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!julius.cs.uiuc.edu!psuvax1!psuvm!cxt105 From: CXT105@psuvm.psu.edu (Christopher Tate) Newsgroups: comp.sys.mac.programmer Subject: Getting Rid of the Menu Bar (again!) Message-ID: <91021.231449CXT105@psuvm.psu.edu> Date: 22 Jan 91 04:14:49 GMT Organization: Penn State University Lines: 29 I *know* this has been batted around before, so if someone can just take pity on a poor helpless programmer and tell me the vital nitty gritty, I'll be much obliged.... How do I make the menu bar go away, so that I can draw where it usually sits? Specifically, I want to open a window the size of the screen, and obscure the menu bar with it. I'm writing a screen saver (yes, I know; the last thing we need is *another* screen saver, but there are legal reasons for this project), and the window has to be put up (and the menu bar taken care of) from within a trap patch. I've gotten the window to display beautifully, but the menu bar stays visible. As I recall, getting rid of the menu bar involves setting the low-memory global MBarHeight to zero, and calling DrawMenuBar(). There's more to it than that, though, because I'm *doing* that, and it doesn't work! Do I need to set the clip region of the Window Manager GrafPort to include the menu bar? That sounds pretty hairy.... I'm using THINK C, so my globals are referenced off of A4 instead of A5. Is this going to cause problems? (I'm saving and restoring ALL registers that I use in the trap patches, and I'm *NOT* tail patching anything!) The traps I'm patching are _SystemEvent (to look for events that will cancel or delay the screen-saving) and _SystemTask (to get periodic time without all the hassle of VBL tasks). ------- Christopher Tate | somewhere i have never travelled, cxt105@psuvm.psu.edu | gladly beyond any experience, ..!psuvax1!psuvm.bitnet!cxt105 | your eyes have their silence.