home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / hypercar / 3155 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.8 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!gumby!destroyer!ncar!stout.atd.ucar.edu!urban
  3. From: urban@stout.atd.ucar.edu (Art Urban (PROFS))
  4. Subject: Re: Validating Data Entry in a Field
  5. Message-ID: <1992Aug19.145519.19724@ncar.ucar.edu>
  6. Sender: urban@stout.atd.ucar.edu 
  7. Organization: Atmospheric Technology Division/NCAR Boulder, CO
  8. References: <1992Aug18.215256.1379@ncar.ucar.edu>
  9. Date: Wed, 19 Aug 1992 14:55:19 GMT
  10. Lines: 32
  11.  
  12. In article <1992Aug18.215256.1379@ncar.ucar.edu> hpoppe@ncar.ucar.edu (Herb Poppe) writes:
  13. %The problem is that there is no way (that I have found) to force the 
  14. %cursor back into the field using the closeField (or exitField) handler. It 
  15. %seems to me that I am going to have to trap every mouseUp sent to the card 
  16. %or button and every openField sent to other unlocked fields as a result of 
  17. %clicking outside of the field in error. That handler (in the card) will 
  18. %have to check if there is an error pending in a field. If there is, it 
  19. %will put the insertion point back in that field. If not, it will send a 
  20. %"myMouseUp" message back to the target of the mouse click. Similarly for 
  21. %openField.
  22. %Herb Poppe                 National Center for Atmospheric Research (NCAR)
  23.  
  24. Hmm, okay. I realize that since I can't actually see your stack, perhaps
  25. you could use the select field syntax.
  26.  
  27. on exitField
  28.  
  29.   put the short name of me into thisFld
  30.   if me is empty then select fld thisFld
  31.  
  32. end exitField
  33.  
  34.  
  35. If I was actually near a Mac with HyperCard I would actually try this. Since
  36. I'm not, I guess it's left as an exercise for the reader... :)
  37.  
  38.  
  39. --
  40. Art Urban                            urban@stout.atd.ucar.edu
  41. ===============================================================================
  42.  "What's Next? Chasing bunnies on a motorbike until their hearts explode? -Crow
  43. ===============================================================================
  44.