Drag command--does this seem right?

Devin Asay devin_asay at byu.edu
Wed Dec 21 17:39:54 EST 2016


On Dec 21, 2016, at 3:19 PM, dunbarx <dunbarx at aol.com<mailto:dunbarx at aol.com>> wrote:

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.

Right. Weird, like I said. A mouseDown message seems to be sort of automatically generated in this case.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University




More information about the use-livecode mailing list