On Fri, Feb 21, 2014 at 6:26 PM, Martin Dias <tinchodias@gmail.com> wrote:
On Fri, Feb 21, 2014 at 2:14 PM, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote:
This works:
m := TreeModel new. m roots: #(1 2 3 4 5). m dragEnabled: true. m dropEnabled: true.
m transferBlock: [ :p :s | TransferMorph withPassenger: s model selectedItems from: s ].
m multiSelection: true.
m openWithSpec.
I guess the same applies for the other model, aka, redefining the TransferMorph. I am currently working on a TransferModel to hide the morphic part of it, but it will not be in Pharo 3.0.
Great, it worked. Thanks
Mmmmmmm, now that I test it with a mouse instead of a trackpad, I see it's almost impossible to do not loose the multiple selection before starting the drag in a TreeModel. As I remembered that in another thread I somebody told that NewLists work better with drag-and-drop of multiple selection, I tried with NewListModel, but I discovered that here drag-and-drop is not working even with single selection. I just reported it in: https://pharo.fogbugz.com/f/cases/12969/Drag-and-drop-never-starts-in-a-NewL... Thanks for all your support. MartÃn