home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15969 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  4.1 KB

  1. Path: sparky!uunet!sybus.sybus.com!myrddin!tct!deep6!nifty.UUCP!fgd3
  2. From: fgd3@nifty.UUCP (Fabbian G. Dufoe, III)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: A Style Guide Question
  5. Distribution: world
  6. Message-ID: <fgd3.02vv@nifty.UUCP>
  7. References:  <17474@pitt.UUCP>
  8. Date: 17 Nov 92 08:37:49 EST
  9. Organization: Fabbian G. Dufoe, III
  10. Lines: 70
  11.  
  12. In article <17474@pitt.UUCP> dan@cs.pitt.edu (Dan Drake) writes:
  13. >This is a style guide question.
  14. >
  15. >To be consistent in my user interface, I am using buttons called done and 
  16. >cancel, that reside in all of my windows.  I want the user to be able to
  17. >activate these buttons through their keyboard equivalents: eg d for done, 
  18. >and c for cancel.  Now on several of these windows, I want the user to type
  19. >text into a beveled box which I handle manually.  THe problem is that if the
  20. >user wants to type a d or a c, there is some ambiguity concerning what 
  21. >should happen.  Will the buttons be activated, or should the characters
  22. >appear in the "textbox"?  I have 2 solutions, and would be interested in
  23. >any other solutions or recommendations.
  24. >
  25. >1.) If a text box is active, the user must click on the buttons to activate
  26. >them.  I consider this unacceptable because it ruins the orthogonality of
  27. >the interface.  You can't have some things work in one window, and not in
  28. >others.
  29.  
  30.    If your "text box" were a string gadget any text typed while the gadget
  31. was active would go to the string gadget and not be picked up by the "Done"
  32. and "Cancel" gadgets.  The keyboard shortcuts for the "Done" and "Cancel"
  33. gadgets would work once the string gadget became unselected--which happens
  34. when the user presses the "Return" key after his text entry is complete.  If
  35. you have implemented your "text box" with something other than a string
  36. gadget you should be careful to emulate that behavior.
  37.  
  38. >2.) Use (ALT|CTRL|right amiga) key to activate the buttons in all cases.
  39. >Alt doesn't work because European languages use it.  Control is awkward
  40. >for left handed people to use like me. (I like to keep one hand on the
  41. >mouse, and one on the keyboard), Right Amiga is somewhat awkward too.
  42.  
  43.    The standard Amiga way to answer requesters from the keyboard is to use
  44. the left Amiga key in conjunction with "v" for the gadget at the bottom left
  45. of the requester and "b" for the gadget at the bottom right of the
  46. requester.  If you would follow that convention you wouldn't have to worry
  47. about when the user might type "c" or "d".
  48.  
  49.    You should not use unqualified keypresses for things which are
  50. irrevocable.  Look at the following requester.
  51.  
  52.     ______________________________________
  53.    |                                      |
  54.    |  O Upper case search                 |
  55.    |  O Lower case search                 |
  56.    |                  _________________   |
  57.    |  Search string: |_________________|  |
  58.    |   ______                     ______  |
  59.    |  |Search|                   |Cancel| |
  60.    |  |______|                   |______| |
  61.    |______________________________________|
  62.  
  63. You could use "U" and "L" as keyboard shortcuts for the two radio button
  64. gadgets.  While the string gadget was activated the user could type strings
  65. containing any number of Us and Ls with no problem.  No matter which search
  66. mode the user selects (with the mouse or the keyboard equivalents) he can
  67. change his mind freely.  It makes sense to allow unqualified keypresses for
  68. those gadgets because the user can correct a keystroke that went wrong.  (He
  69. might have pressed "U" without noticing that the "Search string" gadget was
  70. not selected, for example.)  He can't change his mind after hitting either
  71. the "Search" or "Cancel" gadgets, though.  It should require a more positive
  72. action to select either of those gadgets to make it less likely that the
  73. requester will be answered prematurely by an erroneous keystroke.  So the
  74. keyboard equivalent for the "Search" gadget would be left-Amiga-v and the
  75. keyboard equivalent for the "Cancel" gadget would be left-Amiga-b.
  76.  
  77. --Fabbian G. Dufoe, III
  78.    350 Ling-A-Mor Terrace South   | GEnie:    F.DUFOE3
  79.    St. Petersburg, Florida  33705 | internet: fgd3%nifty@tct.com
  80.    813-823-2350                   | uucp:     ...tct!deep6!nifty!fgd3
  81.  
  82.