Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!apple.com!gandalf From: gandalf@apple.com (Martin Gannholm) Newsgroups: comp.sys.mac.hypercard Subject: Re: Show/Hide menubar question Message-ID: <10687@goofy.Apple.COM> Date: 12 Oct 90 01:00:46 GMT Sender: usenet@Apple.COM Distribution: world,usa Organization: Apple Computer, Inc. Lines: 32 References:<1990Oct11.193221.13578@midway.uchicago.edu> <45586@apple.Apple.COM> In article <45586@apple.Apple.COM> jdevoto@Apple.COM (Jeanne A. E. DeVoto) writes: > In article <1990Oct11.193221.13578@midway.uchicago.edu> > chh9@quads.uchicago.edu (Conrad Halton Halling) writes: > > [...] Is there a way to determine when the > >screen is larger than the standard SE size so I can hide the menubar on an > >SE but not on a Mac II? > > There are a couple of ways to do this. First of all, the function > "the screenRect" returns the rect of the main monitor (the one with > the menubar on it), and you can check whether this is the SE/Plus > screen rect (0,0,512,342). HyperCard 1.x will always return the coordinates of the main screen when the screenRect function is called. HyperCard 2.0 returns the rect of the screen where the card window lies (or in overlapping situations, the one containing the largest area of the card window). This obviously only happens on machines with multiple monitors. You can use this to check if you're on the main screen or not (item 1 to 2 of the screenRect is only "0,0" on the main monitor). Note that the coordinates returned can be negative for when the screen is to the left and/or above the main screen. If you're not on the main screen you don't need to account for the 20-pixel menuBar (more under script systems, e.g. KanjiTalk). Martin Gannholm Apple Computer Exclaimer!!! I typed this myself = I speak for myself...