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