Detecting a "grabEnter"?
dfepstein at comcast.net
dfepstein at comcast.net
Thu Sep 4 13:55:14 EDT 2008
Bonjour Eric,
Your suggestion is intriguing but I haven't understood it. What is an "automatic blend level"? If by script I set the dragged object's blendLevel to 50, I still do not detect a mouseEnter when it's dragged over another object.
Many thanks.
David Epstein
> Bonjour David,
>
> Actually, 2.9 drag and drop feature is able to solve your problem if
> you accept dragged object's automatic blend level.
>
> Le 4 sept. 08 15:49, dfepstein at comcast.net a crit :
>
> > My question about "grabEnter" has led to an interesting broader
> > discussion of the relative merits of grab vs mouseMove..
> > I would be happy to write a more complicated "mouseMove"-controlled
> > script, but as far as I can tell that won't solve the problem I
> > posed. If the user is dragging an object, whether using "grab" or
> > by a script reacting to "mouseMove" events, no objects beneath that
> > object receive a mouseEnter or mouseLeave message, because the
> > mouse remains within the object being dragged.
> > I can think of ways of amending Transcript that would solve this
> > problem--probably by extending the current usage of the various
> > messages associated with drag and drop actions. But is there any
> > way to do what I want with the language as it is? Capturing
> > "mouseMove" doesn't tell me "what control the dragged object has
> > just moved on top of" unless at each nudge of the mouse I compare
> > the mouseLoc with the rectangles of all potential target objects.
> > David Epstein
More information about the use-livecode
mailing list