rcb@rti.UUCP (Randy Buckland) (10/27/87)
Hi, I am a recent Mac convert and am in the process of trying to write some programs for it. I am reasonably sure that I have seen information on how find the boundries of the screen for whatever macintosh the program is running on (read make it mac II compatable). I spent a couple hours last night pawing through inside macintosh and could not find it. Does anyone out there know of a routine or global variable that will give me the following information. - the total size of the screen (342 x 512 on a regular mac) - The usable size of the desktop (the above number minus the size of the menubar) thanks -- Randy Buckland (919)-541-7103 Research Triangle Institute rcb@rti.rti.org [128.109.139.2] {decvax,ihnp4}!mcnc!rti!rcb
jww@sdcsvax.UUCP (10/28/87)
The variable screenBits.bounds gives the size of the screen for an XL, 128/512, 512Ke/Plus and SE; it gives the size of the main screen (the one with the menu bar) on the Mac II. If you want the size of all screens on the II, it gets more complicated. The height of the menu bar is given by routine GetMBarHeight, declared in the Script Manager interfaces in MPW Pascal and C, version 2.0. You can also use low-memory global MBarHeight (location $0BAA). In both cases, this is not valid unless this is a Mac Plus or later, such as indicated by SysEnvirons or ROM85. -- Joel West (c/o UCSD) Palomar Software, Inc., P.O. Box 2635, Vista, CA 92083 {ucbvax,ihnp4}!sdcsvax!jww jww@sdcsvax.ucsd.edu