home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!seuss.apple.com!user
- From: absurd@apple.apple.com (Tim Dierks, software saboteur)
- Subject: Re: Distinguishing FrontClicks?
- Sender: news@gallant.apple.com
- Message-ID: <absurd-050193145752@seuss.apple.com>
- Date: Tue, 5 Jan 1993 22:57:25 GMT
- References: <BzpzH1.8tD@unx.sas.com> <absurd-030193142840@seuss.apple.com> <1993Jan04.160843.18732@microsoft.com>
- Organization: MacDTS Marauders
- Followup-To: comp.sys.mac.programmer
- Lines: 35
-
- In article <1993Jan04.160843.18732@microsoft.com>, ericsc@microsoft.com
- (Eric Schlegel) wrote:
- >
- > In article <absurd-030193142840@seuss.apple.com> absurd@apple.apple.com
- > (Tim Dierks, software saboteur) writes:
- > >In article <BzpzH1.8tD@unx.sas.com>, Michael Hecht
- > ><Michael_Hecht@mac.sas.com> wrote:
- > >>
- > >> I turned on the getFrontClicks bit in my SIZE resource, because it makes
- > >> sense for my application. However, I don't want *all* parts of the window
- > >> to respond to layer-changing clicks. How can I distinguish a click that
- > >> changes my layer from other clicks?
- > >
- > >A technique that's worked for me is to compare the 'when' fields of the
- > >click and the resume event; if the mouseDown has a time before the
- > >resume event, then it's probably this click that caused you to be switched.
- >
- > Wow, I know something that Tim doesn't... :) I've never actually used this,
- > but according to IM 6, pg. 5-16, the activeFlag bit in the modifiers field
- > of a mouseDown event will be set if the mouseDown caused your layer to become
- > frontmost. Also see pg. 2-20 in IM:Mac Toolbox Essentials. Note that this is
- > a System 7-specific feature - it won't work for MultiFinder under System 6.
- >
- > -eric
- > -----
- > My opinions, not Microsoft's.
-
- Cool! Just goes to show that Inside Mac VI is bigger than you
- can possibly imagine....
-
- Tim Dierks
- MacDTS, but I speak for myself
-
- Drop by and say 'Hi' at MacWorld- DTS Debugging Lab, I'll be there
- Thursday morning and Friday afternoon.
-