home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20142 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.8 KB

  1. Xref: sparky comp.windows.x:20142 comp.windows.x.intrinsics:657
  2. Path: sparky!uunet!psinntp!bacon!chuck
  3. From: chuck@IMSI.COM (Chuck Ocheret)
  4. Newsgroups: comp.windows.x,comp.windows.x.intrinsics
  5. Subject: Re: HELP: Using tabs to move along text widgets
  6. Message-ID: <5801@bacon.IMSI.COM>
  7. Date: 10 Dec 92 18:49:01 GMT
  8. References: <1992Nov30.165643.20757@noose.ecn.purdue.edu>
  9. Sender: news@bacon.IMSI.COM
  10. Followup-To: comp.windows.x
  11. Distribution: usa
  12. Organization: Investment Management Services Inc., NYC
  13. Lines: 27
  14.  
  15. In article <1992Nov30.165643.20757@noose.ecn.purdue.edu> jai@cn.ecn.purdue.edu writes:
  16. >I have an application which, for input, opens a window with
  17. >a series of (vertically arranged) text widgets.  To enter data,
  18. >I must move the mouse pointer to a text widget, finish entry,
  19. >move the pointer to the next widget, and so on.  I would like to
  20. >make data entry easier by, say, using a tab character to change
  21. >the input focus to the next text widget (possibly even moving
  22. >the mouse pointer to that widget?).
  23.  
  24. Look at the source for editres to see an example of one way to do
  25. this.  In particular note how dialogs (like the one popped up by "Set
  26. Resource" in the Commands menu) are implemented.
  27.  
  28. As a more general solution I chose to implement a Focus widget which is
  29. a subclass of constraint and can contain one child (which can also be a
  30. composite).  The Focus widgets within a Shell manage transferral of
  31. Focus between their children in response to user actions or
  32. programmatically.  This solution does make your widget tree a little
  33. deeper and takes some more memory but works quite well and is easy to
  34. use.
  35.  
  36. ~chuck
  37. -- 
  38.  Chuck Ocheret, Director of Technology | (212)339-2784 phone
  39.         Investment Management Services | (212)339-2845 fax
  40.          12 E. 49th Street, 35th Floor | chuck@IMSI.COM
  41.                 New York, NY 10017 USA | uupsi!bacon!chuck || uunet!bacon!chuck
  42.