AW: How do I get the object under the mouse when mouseRelease?

Tiemo Hollmann TB toolbook at kestner.de
Tue May 1 05:00:33 EDT 2007


Thanks Ken,Jacqueline, Dick and Bill,
I knew, there are different approaches. I'll test, which one is the best for
me
Thanks
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Bill Marriott
> Gesendet: Dienstag, 1. Mai 2007 02:30
> An: use-revolution at lists.runrev.com
> Betreff: Re: How do I get the object under the mouse when mouseRelease?
> 
> Tiemo,
> 
> It's not quite impossible.
> 
> If you turn on the message watcher, you will see that when you
> drag-and-release, the following messages are sent in quick succession:
> 
> - mouseRelease to the original object
> - mouseMove to the new object
> - mouseLeave to the original object
> - mouseEnter to the new object
> 
> Because this order is always the same, you could check for this pattern
> and
> respond to it.
> 
> > > > I want to realize my own drag and drop handlers with mouseDown,
> > > > mouseRelease, etc. On mouseDown I get the underneath lying object
> with
> > > > mousecontrol. How do I get the name of an object (image) under the
> > > > mouse
> > > > when releasing it [...]?
> 
> > > Sorry, Tiemo... for right now that's the best we've got (AFAIK). I've
> > > lobbied for the mouseControl to not be tied to the original object on
> > > mouseDown, but sadly that hasn't happened yet...
> 
> > Wow, that's a pitty, I was sure there must be a pretty easy solution,
> but
> > if
> > even Ken doesn't has it ;-(
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list