home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!kip-16.taligent.com!user
- From: keith@taligent.com (Keith Rollin)
- Subject: Re: Menu Bar Shape
- Message-ID: <keith-061192062804@kip-16.taligent.com>
- Followup-To: comp.sys.mac.programmer
- Sender: usenet@taligent.com (More Bytes Than You Can Read)
- Organization: Taligent
- References: <1992Nov05.173347.13036@sunfs3.Camex.COM>
- Date: Fri, 6 Nov 1992 14:37:30 GMT
- Lines: 34
-
- In article <1992Nov05.173347.13036@sunfs3.Camex.COM>, kent@sunfs3.Camex.COM
- (Kent Borg) wrote:
- >
- > Why is it that about the time Finder launches on a Powerbook the
- > curved corners at the top of the screen get squared? The bottom
- > corners are still round, but not the top corners. Why?
-
- I think that's for certain types of monitors, starting with the original
- Mac Portable. Normally, the margins of your desktop are black, and drawing
- the black rounded corners looks nice. However, there are some monitors with
- white or light margins. On those monitors, the rounded corners look really
- stupid (white menubar and white margins with these little triangular black
- things floating in the middle of it all).
-
- The MBDF in the Mac Portable was modified to not draw the rounded corners.
- My guess is that the logic used to decide whether or not to draw those
- corners is not quite accurate for all of the new portables.
-
- The code in the MBDF (under 7.0 and later) performs along the following
- lines:
-
- pSquareMenubar = false;
- if (Gestalt(gestaltMiscAttr, &result) == noErr) {
- pSquareMenubar = (result & (1 << gestaltSquareMenuBar)) != 0;
- }
-
- So it looks like Gestalt isn't returning the appropriate value for your
- PowerBook. If this really bothers you, I suppose you could write an INIT to
- replace that Gestalt selector and return a different value.
-
- -----
- Keith Rollin
- Phantom Programmer
- Taligent, Inc.
-