Getting the lead out

Jim Hurley jhurley at infostations.com
Thu Jan 15 11:38:15 EST 2004


I have a check box with the following standard script

local myName

on mouseDown
   put the name of me into myName
end mouseDown


on mouseMOve x,y
   if myName is "" then exit mouseMove
   set the loc of me to x,y
end mouseMove

on mouseUP
   put "" into myName
end mouseUP

on mouseLeave
   mouseUP
end mouseLeave

And the autoHilite is false.

When I grab and move the check box it turns gray, which is customary, 
but it stays gray after mouseUP.

The only way I can remove the gray is to select the box with the pointer tool.

I assume this is a bug, but I am looking for a work-around. How would 
I execute a "click on me with the pointer tool" as part of a mouseUP 
handler?

Jim
P.S. I am aware that Sannyasin is away on a mission. Heather: MERCY!


More information about the use-livecode mailing list