Ok, I just tried what you said and it does not always works
since it is possible to drag an item from the list without selecting it...

Julien

On 04/02/16 17:42, Julien Delplanque wrote:
Oh, I realize I didn't read your mail correctly, I'm sorry.

I will try this trick.

Julien

On 04/02/16 16:55, Johan Fabry wrote:
I don’t know the details of drag and drop, but it seems that you get the source widget as well as an argument of the block. From there you can get the selectedItem, which should be the one that you are dragging I suppose. Can you confirm that this works?

On Feb 4, 2016, at 04:38, Julien Delplanque <jul...@tamere.eu> wrote:

Hey,

I use drag and drop between two lists in a project and I read this tutorial [1] to learn how to do it.

My question is: Is there a way to have another object than a String as passengers in #acceptDropBlock: (I get passengers the same way as in the tutorial i.e sending #passenger to transfer object) like the objects really in the list? Because if I use #displayBlock: it became difficult to be sure I retrieve the object I dropped in the source list...

Thanks in advance,

Julien

[1]: http://spec.st/docs/drag_n_drop/




---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile





Reply via email to