xy

Tereza Snyder tereza at attainmentcompany.com
Wed Jan 23 14:40:01 EST 2002


on 01.23.02 04:29 AM, xbury.cs at clearstream.com wrote:

> new and improved... no flashy text...
> 
> on xy
> repeat until the mouseClick
> get the mouseLoc&&"  horz:"&the mouseH&&"  vert:"&the mouseV
> if it is not lastxy then
> put it
> put it into lastxy
> end if
> end repeat
> end xy

To avoid bottling up the engine servicing your loop:

on mouseMove mX, mY
 put format( "horz: %d  vert: %d", mX, mY )
end mouseMove 

Scott Raney has told us in the past that "repeat until the mouseClick" is
not a good idea because it bolixes up the event handling in the engine. I've
found that mouseMove works wonderfully in situations where you'd be tempted
to use "repeat until the mouse is up" or similar loops.
 
tereza 



+ Tereza Snyder 
+ Senior Software Developer
+ Attainment Company, Inc.
+ <www.attainmentcompany.com>
+ 800.327.4269




More information about the metacard mailing list