home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4430 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!uunet.ca!canrem!dosgate!dosgate![chris.little@canrem.com]
  3. From: "chris little" <chris.little@canrem.com>
  4. Subject: how to distinguish betwee
  5. Message-ID: <1992Dec22.3151.2938@dosgate>
  6. Reply-To: "chris little" <chris.little@canrem.com>
  7. Organization: Canada Remote Systems
  8. Distribution: comp
  9. Date: 22 Dec 92 17:22:01 EST
  10. Lines: 32
  11.  
  12. In article <722@lax.lax.pe-nelson.com> (Tom W. Brown) writes:
  13.  
  14. > Just thinking about trying to make this work properly for all cases and
  15. > users makes me feel slightly nauseated though.  A double click should
  16. > only perform an action that is an extension of whatever a single click
  17. > does, anything else would be confusing and cause endless annoyance.  I'm
  18. > not a Mac user, but I'll bet that even there it is a very rare case
  19. > where a double click does something completely unrelated to a single
  20. > click.
  21.  
  22. > I think the suggestion that modifier keys (CTRL, ALT, SHIFT) be used to
  23. > distinguish between different actions on a click is the best way to go
  24. > unless you want to introduce "mouse modes" in your application where the
  25. > current mode determines the action of a click.
  26.  
  27. As a Mac programmer I will comfirm that double-clicks are always an
  28. extension of a single-click.  To track single vs double clicks you have to
  29. record the time of a mouse down event and compare it against the
  30. double-click time and the current tick count during the next mouse down
  31. event.
  32.  
  33. My question is how to determine if the modifier keys are down during a
  34. WM_LBUTTONDOWN message.
  35.  
  36. Chris Little
  37. Logicus Incorporated.
  38.  
  39. ---
  40.  This copy of Freddie 1.2 is being evaluated.
  41. --
  42. Canada Remote Systems  - Toronto, Ontario
  43. World's Largest PCBOARD System - 416-629-7000/629-7044
  44.