Drag command--does this seem right?
dunbarx
dunbarx at aol.com
Wed Dec 21 17:06:29 EST 2016
Hi.
Because the "target" is always the card. Think about this instead:
on mouseMove
if the target contains "button" then --same as "the target <> me" in this
case
grab the target
end if
end mouseMove
Now when you click on the button, the target changes from its initial value
(a card reference) to a button reference, and that will invoke "drag". It
isn't so much, in other words, that you click the mouse, it is that the
target changes when you do. The way you wrote the handler, you have to click
to enable drag.
Craig
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drag-command-does-this-seem-right-tp4711132p4711136.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list