Drag command--does this seem right?

dunbarx dunbarx at aol.com
Wed Dec 21 23:19:03 CET 2016


Hi again.

Hmmm.

A single button on a card, I tried this in the card script:

on mouseMove
   put the target
 if the target contains "button"  then 
    grab the target 
 end if 
end mouseMove 

The target does indeed become the button when the cursor is over its rect
(no clicking). So the grab should fire as soon as the cursor enters that
space.

Hmmm. It seems that the mouseDown message is integral to the grab command.
One cannot kluge that with properties alone, as we both sort of thought.

Craig



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drag-command-does-this-seem-right-tp4711132p4711137.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list