[comp.sys.mac.programmer] Making the whole Menu Bar disappear

jp24@umd5.umd.edu (Geoff Adams) (05/16/91)

Many programs have the ability to make the menu bar disappear.  Some do it
while leaving the rest of the desktop visible, such as GifConverter and
HyperCard.  Some, such as screen savers, erase the whole screen and start
with a fresh one.  How can I do this?

I've looked throughout Inside Mac and Apple's TechNotes.  Nothing on hiding
the menu bar.  My compiler (THINK Pascal) calls InitWindows on its own, so
I can't exactly get around creating the empty menu bar, nor do I want to.

Can anybody help me?  Thanks...

Geoff Adams        gadams@bessel.umd.edu
The opossum is a very sophisticated animal.  It doesn't even get up
until 5 or 6 p.m.

sjhg9320@uxa.cso.uiuc.edu (Maximum Slackness ) (05/17/91)

jp24@umd5.umd.edu (Geoff Adams) writes:

>Many programs have the ability to make the menu bar disappear.  Some do it
>while leaving the rest of the desktop visible, such as GifConverter and
>HyperCard.  Some, such as screen savers, erase the whole screen and start
>with a fresh one.  How can I do this?

Piece o' cake- Set the MBarHeight to Zero Pixels. You can probably find
the exact name of the System Global in the back of IM or a debugger manual.
If you want to see an example of it, investigate 'Macintosh Programming
Primer', Vol.1.
Just make sure to get it's original height and restore it once you've had
your fun with it.
--
______________________________________________________________________________
         No matter what you do, somebody always knew that you would...
==============================================================================

mxmora@unix.SRI.COM (Matt Mora) (05/17/91)

In article <8588@umd5.umd.edu> gadams@bessel.umd.edu (Geoff Adams) writes:

>I've looked throughout Inside Mac and Apple's TechNotes.  Nothing on hiding
>the menu bar.  My compiler (THINK Pascal) calls InitWindows on its own, so
>I can't exactly get around creating the empty menu bar, nor do I want to.
>
>Can anybody help me?  Thanks...

Geoff,

Look in the UMPG. There is a great article on menu bar hiding by Earle Horton.
It's in Pascal.




The UMPG can be found on the New System seven golden CD. I just got my copy 
today.



Matt

-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________