home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4970 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.6 KB

  1. Path: sparky!uunet!zephyr.ens.tek.com!vice!bobb
  2. From: bobb@vice.ICO.TEK.COM (Robert Beauchaine)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: TV Focus in Dialog views
  5. Message-ID: <10213@vice.ICO.TEK.COM>
  6. Date: 21 Aug 92 23:31:23 GMT
  7. References: <10202@vice.ICO.TEK.COM> <1992Aug21.190034.40057@urz.unibas.ch>
  8. Organization: Tektronix, Inc., Beaverton,  OR.
  9. Lines: 31
  10.  
  11. In article <1992Aug21.190034.40057@urz.unibas.ch> gysin1@urz.unibas.ch writes:
  12. >In article <10202@vice.ICO.TEK.COM>, bobb@vice.ICO.TEK.COM (Robert Beauchaine) writes:
  13. >> 
  14. >>   Here's the problem:
  15. >> 
  16. >
  17. >    Well, I think the only thing you can do is to override the
  18. >HandleEvent-Method and redefine the function of kbTab and kbShiftTab (and -why
  19. >not ? - kbEnter). The user is probably already typing in new values and has
  20. >just to type the Tab-Key or Enter-Key to jump to the next InputLine. If he
  21. >moves the focus with the mouse, he doesn't need to care for the value, any
  22. >typing is ignored...
  23. >
  24. >    For catching positional events, I suppose you should start at the
  25. >Dialog's event handler that manages the subviews....
  26. >
  27.  
  28.   Actually, I solved the problem today.  Catching the change of
  29.   focus seems to be the correct solution.  The one missing part was
  30.   to check the value of the COMMAND parameter passed into the input
  31.   number's valid() function.  If COMMAND = cmCancel, don't do the
  32.   validation.  Pretty simple, but it gave me fits!
  33.  
  34. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ 
  35.  
  36. Bob Beauchaine bobb@vice.ICO.TEK.COM 
  37.  
  38. C: The language that combines the power of assembly language with the 
  39.    flexibility of assembly language.
  40.  
  41. Real friends don't let friends use UNIX.
  42.