home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20620 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!microsoft!hexnut!ericsc
  3. From: ericsc@microsoft.com (Eric Schlegel)
  4. Subject: Re: Distinguishing FrontClicks?
  5. Message-ID: <1993Jan04.160843.18732@microsoft.com>
  6. Date: 04 Jan 93 16:08:43 GMT
  7. Organization: Microsoft Corporation
  8. References: <BzpzH1.8tD@unx.sas.com> <absurd-030193142840@seuss.apple.com>
  9. Lines: 23
  10.  
  11. In article <absurd-030193142840@seuss.apple.com> absurd@apple.apple.com
  12. (Tim Dierks, software saboteur) writes:
  13. >In article <BzpzH1.8tD@unx.sas.com>, Michael Hecht
  14. ><Michael_Hecht@mac.sas.com> wrote:
  15. >> 
  16. >> I turned on the getFrontClicks bit in my SIZE resource, because it makes
  17. >> sense for my application. However, I don't want *all* parts of the window
  18. >> to respond to layer-changing clicks. How can I distinguish a click that
  19. >> changes my layer from other clicks?
  20. >
  21. >A technique that's worked for me is to compare the 'when' fields of the
  22. >click and the resume event; if the mouseDown has a time before the
  23. >resume event, then it's probably this click that caused you to be switched.
  24.  
  25. Wow, I know something that Tim doesn't... :) I've never actually used this,
  26. but according to IM 6, pg. 5-16, the activeFlag bit in the modifiers field
  27. of a mouseDown event will be set if the mouseDown caused your layer to become
  28. frontmost. Also see pg. 2-20 in IM:Mac Toolbox Essentials. Note that this is
  29. a System 7-specific feature - it won't work for MultiFinder under System 6.
  30.  
  31. -eric
  32. -----
  33. My opinions, not Microsoft's.
  34.