Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!cs.utexas.edu!rutgers!ucsd!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Hiding the menu bar Message-ID: <10559@hoptoad.uucp> Date: 3 Mar 90 23:40:28 GMT References: <17190@cs.yale.edu> <4113@hub.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 20 From article <17190@cs.yale.edu>, by tarr-michael@CS.Yale.EDU (michael tarr): >> I am looking for some LSC 4.0 code to make a window cover the entire >> screen including the menu bar, I want the bar to appear only when a >> mousedown occurs in the menubar region. (Like in Tetris). Does anyone >> have code they are willing to share to do this? In article <4113@hub.UUCP> 6500stom@hub.UUCP (David Stoms) writes: >All you have to do is save the menu bar area to an offset pixmap and >thin change the window's visRgn and clipRgn to include the portion of >the screen that the menu bar covers. If the user click in the menu >bar just change the vis and clipRgns back and copybits the pixmap >back. I think that'll work.. yah.. maybe. Why would you need this crufty save-restore? Couldn't you just DrawMenuBar after fixing up the visible and clip regions? This avoids stealing bits from the screen and makes the code simpler. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "I may be nuts but a speedfreak I ain't!" -- Robert Crumb