home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!csus.edu!csusac!unify!openlook!openlook-request
- From: fgreco@fis1026.shearson.com (Frank Greco)
- Newsgroups: comp.windows.open-look
- Subject: Re: changing keyboard focus
- Message-ID: <ciiff2w@openlook.Unify.Com>
- Date: 14 Aug 92 13:48:57 GMT
- Sender: news@Unify.Com
- Lines: 22
-
- > I'm trying to explicitly control the keyboard input focus in an
- > xview application and am having trouble figuring out how to do this.
- > I'm trying to override the TAB functionality in a frame that contains
- > a bunch of text panels. I want the caret to move in a different
- > order. Anyone know how to do this? Thanks in advance...
-
- I'm assuming you mean panel_text's that live in a panel...
-
- I would park an event proc on the panel (WIN_EVENT_PROC), look
- for TAB (and SHIFT-TAB for backing up), then use PANEL_CARET_ITEM
- to set the focus to the next "desired" item. I would also suggest
- that you achieve the next-focus/prev-focus order that you desire
- by putting the items into an "ordered" array (ie, put them in the array
- in the same order that you want focus to move) and cycle through
- them.
-
- Don't forget to pass on the non-interesting (non-TAB/BACK-TAB)
- events to the default handler.
-
- Frank G.
-
- =-=-=-=-=-=-=-=-=-=
-