home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / openloo / 5143 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!spdev.East.Sun.COM!nitehawk!jdf
  2. From: jdf@nitehawk.East.Sun.COM (Jim Fiori - Special Projects)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: XView Question: Changing Focus
  5. Date: 25 Jan 1993 14:16:22 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 17
  8. Distribution: world
  9. Message-ID: <1k0snmINNfic@spdev.East.Sun.COM>
  10. References: <1993Jan22.212142.27485@tc.cornell.edu>
  11. Reply-To: jdf@nitehawk.East.Sun.COM
  12. NNTP-Posting-Host: nitehawk.east.sun.com
  13.  
  14. In article 27485@tc.cornell.edu, fielding@theory.TC.Cornell.EDU (David L. Fielding) writes:
  15. >
  16. >    How does one change the focus from a text field in one
  17. >panel to a text field in a different panel in the same window?
  18. >I'm using XView 3.0.
  19. >
  20. >    xv_set (panel, PANEL_CARET_ITEM, another_item, NULL);
  21. >    This code only works in the same panel.
  22. >
  23.  
  24. Use the WIN_FOCUS attribute for the panel:
  25.  
  26.         xv_set (panel, WIN_FOCUS, PANEL_CARET_ITEM, another_item, NULL);
  27.     
  28. Jim Fiori
  29.  
  30.  
  31.