home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / openloo / 4496 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!usc!rpi!newsserver.pixel.kodak.com!morss
  3. From: morss@eksignal.kodak.com (Charlie Morss)
  4. Subject: single character text fields w/ panel notify level
  5. Message-ID: <1992Nov13.161537.3618@pixel.kodak.com>
  6. Sender: morss@eksignal.kodak.com
  7. Organization: Eastman Kodak
  8. Date: Fri, 13 Nov 92 16:15:37 GMT
  9. Lines: 41
  10.  
  11. A few questions from a friend of mine (who doesn't have
  12. News access) came up. I can't figure them out so maybe
  13. someone can give us a hand.
  14.  
  15. Question #1
  16.  
  17. Using devguide 3.0.
  18.  
  19. " I'm trying to create an application with a lot of single 
  20. character text fields and need to auto-tab to the next field
  21. when a key is hit. "
  22.  
  23. "I set up a single char text field w/ a connection to itself with
  24. 'when' set to notify. I have an xv_set(window,PANEL_NOTIFY_LEVEL,
  25. PANEL_ALL,NULL) in the main, so my callback triggers on each
  26. character. In the callback I want the spacebar to move to the 
  27. next field so I use: 
  28.  
  29.     if (event_is_down(event) && event_id(event) == 32)
  30.         return PANEL_NEXT;
  31.  
  32. "It does move the cursor but I get an annoying beep. Why?"
  33.  
  34.  
  35.  
  36. Question #2
  37.  
  38. "If you set up a text field w/ a connection to itself and 'when'
  39. set to any event, anytime you reposition the caret using the mouse,
  40. it leaves a 'ghost' caret behind. Any ideas? (The code output by
  41. devguide was not modifed at all)."
  42.  
  43. Anyone have a fix or a better method of moving the caret to a 
  44. specific text item when a key is hit? 
  45.  
  46.  
  47. -- 
  48. -----------------------------------------------------------------
  49. Charlie Morss                               Voice: (716) 726-5461
  50. morss@eksignal.kodak.com                      Fax: (716) 726-4850 
  51. -----------------------------------------------------------------
  52.