Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!usc!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Show/Hide menubar question Message-ID: <45586@apple.Apple.COM> Date: 11 Oct 90 22:05:34 GMT References: <1990Oct11.193221.13578@midway.uchicago.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 33 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). The second method is to check the position of the card window to see whether part is obscured by the menu bar; for instance, on openStack if the top of card window < 20 then hide menubar end openStack The latter method is probably preferable, since with HyperCard 2.0, it's possible to have card sizes larger than the Plus/SE monitor, and stacks remember their last screen positions (so a stack might show up even on a large monitor with part of the card window hidden under the menu bar). You can also get fancy: compare the size of card window to the screenRect, and move the window down (instead of hiding the menu bar) if there's room. -- ========= jeanne a. e. devoto ======================================== jdevoto@apple.com | You may not distribute this article under a jdevoto@well.sf.ca.us | compilation copyright without my permission. ______________________________________________________________________ Apple Computer and I are not authorized | CI$: 72411,165 to speak for each other. |