home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!vdoe386!tjhsst!bbooz
- From: bbooz@tjhsst.vak12ed.edu (William Booz (Bill))
- Subject: Protecting a Text field
- Message-ID: <1992Nov20.000530.21486@tjhsst.vak12ed.edu>
- Organization: Virginia's Public Education Network (Fairfax)
- Date: Fri, 20 Nov 92 00:05:30 GMT
- Lines: 30
-
- I have a stack with a main text field containing information
- from card to card. I would like to keep the field locked so
- it's contents aren't accidentally - or on purpose - changed,
- but I also want browsers to be able to select blocks of text
- they want within a given field, copy it and then paste the
- selection into a collection "notepad" field I have on a Note
- Pad card in the stack.
-
- I have created this handler and it works:
-
- on idle
- if the optionKey is down then
- set the lockText of bg fld id 9 to false
- else
- set the lockText of bg fld id 9 to true
- end if
- end idle
-
- I remember some discussion here some time ago that one should
- avoid "on idle" handlers if possible. I have tried "on
- mouseStillDown" and some other variations but they don't work.
-
- Question: what am I missing? Is there a more elegant solution
- to my problem?
-
- Thanks in advance for any help.
- --
- _______________ __o Bill Booz, Fairfax, VA
- _________________ -\<, bbooz@tjhsst.vak12ed.edu
- ......O/ O Biking Is Fun!!
-