Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!portal!sv!news From: leonardr@svc.portal.com (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: How to hide the menubar (again) Message-ID: <1990Dec6.011554.14016@svc.portal.com> Date: 6 Dec 90 01:15:54 GMT References: <13513@uswat.UUCP> Sender: news@svc.portal.com Reply-To: leonardr@svc.portal.com (Leonard Rosenthol) Organization: Software Ventures Corporation. Lines: 22 In article <13513@uswat.UUCP>, russell@uswat.uswest.com (Russell Greenlee) writes: > I know that this has been thrashed out here in the past, but I don't > remember the outcome. I have been doing this by changing the GrayRgn > and setting the height of the menu bar to 0. This seems to work fine > on a Mac II, Mac Plus, or SE, but it leads to system crashes on an fx. > If anyone knows of a better way to do this, I'd love to hear it. How > does Hypercard do it? > You ALMOST have it right, but you are doing more work than you have to - and you can let the system do some for you too.. First store off the current mBarHeight ($BAA) so that you can restore it later on - NEVER assume it is 20 as it can vary on other Script Systems. Then set the mBarHeight to 0 and call DrawMenuBar(). But calling DrawMenuBar, you let the system do the work of changing GrayRgn (and other stuff). Try it, you'll like it! -- ---------------------------------------------------------------------- + Leonard Rosenthol | Internet: leonardr@sv.portal.com + + Software Ventures | GEnie: MACgician + + MicroPhone II Development Team | AOL: MACgician1 + ----------------------------------------------------------------------