home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!rsoft!mindlink!a347
- From: John_Miller@mindlink.bc.ca (John Miller)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Trapping messages between windows?
- Message-ID: <14344@mindlink.bc.ca>
- Date: 17 Aug 92 20:23:07 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Distribution: world
- Lines: 42
-
- In message <1992Aug17.070911.10151@usage.csd.unsw.OZ.AU>,
- cnquinn@spectrum.cs.unsw.oz.au (Clark Quinn) writes
- > While talking to two of my students who are working on an
- > adventure game implementation, we came across an interesting
- > bit of HyperCard behavior we were wondering if anyone could
- > illuminate:
-
- ...
-
- > on mouseStillDown
- > set loc of button "New Button" to the mouseLoc
- > end mouseStillDown
- >
- > on mouseUp
- > beep
- > end mouseUp
-
- [no beep]
-
- > on mouseDown
- > repeat while the mouse = "down"
- > set loc of button "New Button" to the mouseLoc
- > end repeat
- > end mouseDown
-
- [combined with the above mouseUp handler always causes a beep]
-
- This is a HyperCard quirk. If your mouseDown handler
- uses a "repeat while the mouse is down" loop,
- the mouseUp message is always sent when the mouse is
- released, even if the mouse has been moved outside
- the button before release. This was also true
- in HyperCard 1.2.5.
-
- It would probably be best to avoid relying on
- this quirk. Perhaps all the processing
- should go in your mouseDown handler.
-
- John Miller
- Symplex Systems
-
-
-