[Pharo-project] Drag and Drop - drag from hook
Is there a hook sent to the containing morph when one of its submorphs gets dragged out? I don't see one. Thanks. Sean -- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282507.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
You can achieve the effect with the message #justGrabbedFrom: sent to the grabbed morph Hilaire Le 10/01/2012 17:49, Sean P. DeNigris a écrit :
Is there a hook sent to the containing morph when one of its submorphs gets dragged out? I don't see one.
Thanks. Sean
-- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282507.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Dr. Geo -- http://www.drgeo.eu
Hilaire Fernandes wrote
You can achieve the effect with the message #justGrabbedFrom: sent to the grabbed morph
Thanks Hilaire. I saw that one, but I'm wanting to notify the containing morph (i.e. former owner) -- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282654.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Yes you have to use dispatching. I did no see message sent to the owner morph by the system. Hilaire Le 10/01/2012 18:26, Sean P. DeNigris a écrit :
Hilaire Fernandes wrote
You can achieve the effect with the message #justGrabbedFrom: sent to the grabbed morph
Thanks Hilaire. I saw that one, but I'm wanting to notify the containing morph (i.e. former owner)
-- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282654.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Dr. Geo -- http://www.drgeo.eu
Hilaire Fernandes wrote
Yes you have to use dispatching.
You mean call a custom method from justGrabbedFrom:? The problem is that the grabbed morph is not a part of my project, and I want the behavior for *any* morph grabbed out of this container. Hilaire Fernandes wrote
I did no see message sent to the owner morph by the system.
Yes, I will add a hook and submit to inbox. What should it be called? It's a weird passive-voice situation... #justGrabbedFromMe: aMorph? #justLost:? Ugly, but I can't think of anything better. -- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282966.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Sean P. DeNigris wrote
Hilaire Fernandes wrote
I did no see message sent to the owner morph by the system.
Yes, I will add a hook and submit to inbox. What should it be called? It's a weird passive-voice situation... #justGrabbedFromMe: aMorph? #justLost:? Ugly, but I can't think of anything better.
#submorphJustGrabbed: aMorph? Nick -- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4283947.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Ok my example was different. I wanted to know how I can control dropping. Stef On Jan 10, 2012, at 6:22 PM, Hilaire Fernandes wrote:
You can achieve the effect with the message #justGrabbedFrom: sent to the grabbed morph
Hilaire
Le 10/01/2012 17:49, Sean P. DeNigris a écrit :
Is there a hook sent to the containing morph when one of its submorphs gets dragged out? I don't see one.
Thanks. Sean
-- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282507.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Dr. Geo -- http://www.drgeo.eu
long time ago I did a simple drag and drop example to understand how it works. On Jan 10, 2012, at 5:49 PM, Sean P. DeNigris wrote:
Is there a hook sent to the containing morph when one of its submorphs gets dragged out? I don't see one.
Thanks. Sean
-- View this message in context: http://forum.world.st/Drag-and-Drop-drag-from-hook-tp4282507p4282507.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (4)
-
Hilaire Fernandes -
ncalexan -
Sean P. DeNigris -
Stéphane Ducasse