home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / programm / 3554 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  2.3 KB

  1. Path: sparky!uunet!usc!english
  2. From: english@alicudi.usc.edu (Joe English)
  3. Newsgroups: comp.programming
  4. Subject: Re: Telling if the SHIFT key is down.
  5. Date: 22 Jan 1993 10:45:59 -0800
  6. Organization: Nerds of Action
  7. Lines: 47
  8. Distribution: world
  9. Message-ID: <1jpfd7INNit@alicudi.usc.edu>
  10. References: <00966E8E.9CED30C0@Msu.oscs.montana.edu> <1993Jan21.132348.19617@druid.uucp>
  11. Reply-To: joe@trystero.art.com
  12. NNTP-Posting-Host: alicudi.usc.edu
  13.  
  14.  
  15. In article <1993Jan21.132348.19617@druid.uucp>, darcy@druid.uucp (D'Arcy J.M. Cain) writes:
  16. |> ooprb@Msu.oscs.montana.edu writes:
  17.  
  18. |> >WHAT FOR:
  19. |> >I'm writting a program that updates numbers by the press
  20. |> >of a mouse button.  I would like to change the value by
  21. |> >a different amount if the shift key is being pressed when 
  22. |> >a mouse button is pressed.
  23. |> 
  24. |> Don't do this.  If you must change the meaning of a mouse button use
  25. |> another button to do this.  Your method requires your users to have
  26. |> their hands on two different devices in order to do input.
  27.  
  28. Using keyboard modifiers in conjunction with mouse buttons
  29. seems perfectly reasonable.  Both the Motif and Open Look
  30. style guides use keyboard modifiers to change mouse button 
  31. behavior all the time, and many Macintosh programs do too.
  32.  
  33. Speaking from personal experience, I have no difficulty 
  34. using Ctrl, Shift, and Alt in conjuction with the mouse;
  35. the mouse only takes one hand to use and on most keyboards
  36. the modifiers are all available on the left side.  Pressing
  37. Control-meta-shift-button three might pose some problems 
  38. for left-handed users, though.
  39.  
  40. |>  In fact
  41. |> why not just make use of the different buttons on the mouse?  You could
  42. |> for example increment by 1 on the left, 5 on the right and 3 on the
  43. |> middle.  If your user has a two button mouse it still works but with
  44. |> less intermediate control.
  45.  
  46. This severely restricts the number of functions you can 
  47. perform with the mouse, especially if it only has one or
  48. two buttons.  The latest Motif Style guide defines at 
  49. least 14 standard mouse-based operations (probably more),
  50. most of them involving different selection and transfer
  51. methods.  You could get by without all but one or two
  52. of them, but intermediate and advanced users probably
  53. wouldn't want to.
  54.  
  55.  
  56. Just my two cents worth,
  57.  
  58. --Joe English
  59.  
  60.   joe@trystero.art.com
  61.