use-revolution Digest, Vol 77, Issue 29

Jim Bufalini jim at visitrieve.com
Fri Feb 12 06:29:37 EST 2010


Jim Lambert wrote:
 
> Jacque wrote:
> 
> > on mousemove x,y
> >  put the helptext of the target into fld "help field"
> > end mousemove
> 
> 
> With rev messages that are called very frequently, like mousemove, I
> generally do a test to see if the overhead of refreshing a field is
> really necessary.
> 
> on mousemove x,y
>  	if the myLastTarget of fld "help field" <> the target then
>  		put the helptext of the target into fld "help field"
> 		set the myLastTarget of fld "help field" to the target
> 	end if
> end mousemove
> 
> But this is just habit and superstition on my part.
> 
> Opinions?

I like it. ;-) Especially if handlers are long ones.

Aloha from Hawaii,

Jim Bufalini




More information about the use-livecode mailing list