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

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