home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / hypercar / 4252 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!vdoe386!tjhsst!bbooz
  3. From: bbooz@tjhsst.vak12ed.edu (William Booz (Bill))
  4. Subject: Protecting a Text field
  5. Message-ID: <1992Nov20.000530.21486@tjhsst.vak12ed.edu>
  6. Organization: Virginia's Public Education Network (Fairfax)
  7. Date: Fri, 20 Nov 92 00:05:30 GMT
  8. Lines: 30
  9.  
  10. I have a stack with a main text field containing information
  11. from card to card.  I would like to keep the field locked so
  12. it's contents aren't accidentally - or on purpose - changed,
  13. but I also want browsers to be able to select blocks of text
  14. they want within a given field, copy it and then paste the
  15. selection into a collection "notepad" field I have on a Note
  16. Pad card in the stack.
  17.  
  18. I have created this handler and it works:
  19.  
  20.     on idle
  21.      if the optionKey is down then
  22.       set the lockText of bg fld id 9 to false
  23.      else
  24.       set the lockText of bg fld id 9 to true
  25.      end if
  26.     end idle
  27.  
  28. I remember some discussion here some time ago that one should
  29. avoid "on idle" handlers if possible.  I have tried "on
  30. mouseStillDown" and some other variations but they don't work.
  31.  
  32. Question: what am I missing?  Is there a more elegant solution
  33. to my problem?
  34.  
  35. Thanks in advance for any help.
  36. -- 
  37.             _______________    __o        Bill Booz, Fairfax, VA
  38.         _________________     -\<,       bbooz@tjhsst.vak12ed.edu
  39.                         ......O/ O            Biking Is Fun!!
  40.