home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18081 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.9 KB  |  47 lines

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