Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Cursor in menubar Message-ID: <45856@apple.Apple.COM> Date: 21 Oct 90 06:24:08 GMT References: <1679taylorj@yvax.byu.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 26 In article <1679taylorj@yvax.byu.edu> taylorj@yvax.byu.edu offers an idle handler to detect when the pointer is in the menubar: >on idle > [. . .] > if the mouseV + the top of card window < 20 then > if not inMenuBar then > send mouseEnterMenu to this card > put true into inMenuBar > end if > [. . .] To get even fancier, for the case in which you're running on a system with multiple monitors, you'll need to test the horizontal position also (to determine whether the pointer is on the main monitor): if (the mouseV + the top of card window < 20) and ~ (the mouseH > item 1 of the screenRect) and ~ (the mouseH < item 3 of the screenRect) then [ etc ] -- ========= 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. |