home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!comp.vuw.ac.nz!canterbury.ac.nz!cantva!clas005
- From: clas005@csc.canterbury.ac.nz
- Subject: Re: How to get rid of the clicktext
- Message-ID: <1992Nov6.104053.1@csc.canterbury.ac.nz>
- Nntp-Posting-Host: cantva.canterbury.ac.nz
- Organization: University of Canterbury, Christchurch, New Zealand
- References: <4NOV199220221807@oregon.uoregon.edu>
- Date: Thu, 5 Nov 1992 21:40:53 GMT
- Lines: 20
-
- In article <4NOV199220221807@oregon.uoregon.edu>,
- derthanq@oregon.uoregon.edu (Victor Der-Thanq Chen) writes:
- > I am doing something using the clicktext in a field. In the openfield handler
- > I check the value of the clicktext. If it is empty, do nothing, otherwise do
- > something.
- >
- > The problem I have is that when the sencond pass of using the clicktext, even
- > thoug I do not click on anything, the clicktext still returns the previously
- > clicked text.
-
- It is absolutely true that the value The ClickText is persistent.
- But this just means you probably should not check that way. A mouseUp handler
- will have the virtue that it won't be called unless there was, at
- least, a click. Then, if the click was on a word, there will be
- clickText; if not, the clickText will be empty. Your difficulty
- is caused by the fact that you are checking in an openField
- handler.
-
- If you *must* do it the way you are doing, use "click at the loc
- of me" to clear the ClickText. -- matt
-