🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #40263

Re: Window with no menu bar?

#40263
From: Leonard Rosenthol
Date: Sun, 02 Apr 1989 22:06
27 lines
1858 bytes
In article <3867@emory.mathcs.emory.edu>, phssra@mathcs.emory.edu (Scott R. Anderson) writes:
> In article <2214@helios.ee.lbl.gov> beard@ux3.lbl.gov (Patrick C Beard) writes:
>> [Previous discussion about FullScreen Dialogs (ie. cover the menu bar)
>>
	There is no CLEAN solution to the problem of using the whole screen
(ie. covering the menubar) but the one that I prefer as it does not mess with
the GrayRgn (and it is what Hypercard does) is to actually remove the MenuBar
and then let the OS redefine the GrayRgn for you.
	The following outline of the procedure should give you an idea of what
to do to get rid of the menuBar - JUST REMEMBER that if the user could somehow
switch out of your application while the menuBar is gone - you had better check
for it and handle it properly!

Get the MenuBar height (either use GetMBarHeight or check $BAA)
Set the MenuBar height to 0 (set $BAA to 0 yourself)
Call DrawMenuBar (this will get the OS to reset the GrayRgn for you)
Get the GrayRgn (use GetGrayRgn) and use it to draw the screen
Reset the MenuBar height to the saved value (set $BAA to the saved value)
Call DrawMenuBar (reset the GrayRgn back for you)

That's All Folks!!!

-- 
+--------------------------------------------------+
Leonard Rosenthol        |  GEnie : MACgician
Lazerware, inc.          |  MacNet: MACgician
UUCP: svc@well.UUCP      |  ALink : D0025
Technical Details
Message-ID: <11208@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!apple!well!svc
References: <15866@cup.portal.com> <2214@helios.ee.lbl.gov> <3867@emory.mathcs.emory.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!apple!well!svc
From: svc@well.UUCP (Leonard Rosenthol)
Newsgroups: comp.sys.mac
Subject: Re: Window with no menu bar?
Summary: It's crude but you can get rid of the MenuBar
Message-ID: <11208@well.UUCP>
Date: 2 Apr 89 22:06:26 GMT
References: <15866@cup.portal.com> <2214@helios.ee.lbl.gov> <3867@emory.mathcs.emory.edu>
Distribution: usa
Lines: 27