home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / openloo / 3466 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.2 KB

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