home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / softsys / andrew / 1458 next >
Encoding:
Text File  |  1992-12-21  |  1.5 KB  |  47 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!nessie.cs.id.ethz.ch!caronni
  2. From: caronni@nessie.cs.id.ethz.ch (Germano Caronni)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: Switching between fields
  5. Message-ID: <9212211657.AA19415@nessie.cs.id.ethz.ch>
  6. Date: 21 Dec 92 17:18:20 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 34
  11. X-Unparsable-Date: Mon, 21 Dec 92 17:57:37 CET
  12.  
  13. Hi,
  14. I have an inset containing several text-input fields, constructed
  15. with arbcon. And each time the user types in a string and confirms
  16. it with 'return' , I would like to switch the cursor to the next input 
  17. field. Currently I am trying this by doing this: in the user-part of
  18. the Routines:
  19.  
  20. static void subjectCallBack(self,val,r1,r2)
  21. struct confv *self;
  22. struct value *val;
  23. long r1,r2;
  24. {
  25. if(r2 == value_OBJECTDESTROYED) {
  26.         if(self->subject == val) self->subject = NULL;
  27. }
  28. {
  29. /* user code begins here for subjectCallBack */
  30.                                                            /*--START--*/
  31.     enterstrV_WantInputFocus(self->memberListView,self->memberListView);
  32.                                                            /*---END---*/
  33. /* user code ends here for subjectCallBack */
  34. }
  35.  
  36. But this doesn't work. Has anybody an helping idea ?
  37. Friendly greetings & merry christmas,
  38.  
  39.         Germano Caronni
  40.  
  41. --
  42. Instruments register only through things they're designed to register.
  43. Space still contains infinite unknowns.
  44.  
  45. Germano Caronni    caronni@nessie.cs.id.ethz.ch
  46.  
  47.