Re: [Pharo-dev] Multiple-selection drag-and-drop

2014-02-24 Thread Martin Dias
I found a possible fix that needs review: https://pharo.fogbugz.com/f/cases/12985/Sometimes-multi-selection-is-lost-on-trees cheers, Martín On Sat, Feb 22, 2014 at 5:20 PM, Martin Dias wrote: > On Sat, Feb 22, 2014 at 5:04 PM, Martin Dias wrote: > > On Sat, Feb 22, 2014 at 4:53 PM, Benjamin

Re: [Pharo-dev] Multiple-selection drag-and-drop

2014-02-22 Thread Martin Dias
On Sat, Feb 22, 2014 at 5:04 PM, Martin Dias wrote: > On Sat, Feb 22, 2014 at 4:53 PM, Benjamin > wrote: >> On 22 Feb 2014, at 16:40, Martin Dias wrote: >>> >>> Mmm, 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

Re: [Pharo-dev] Multiple-selection drag-and-drop

2014-02-22 Thread Martin Dias
On Sat, Feb 22, 2014 at 4:53 PM, Benjamin wrote: > On 22 Feb 2014, at 16:40, Martin Dias wrote: >> >> Mmm, 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. > > Why? > Here

Re: [Pharo-dev] Multiple-selection drag-and-drop

2014-02-22 Thread Martin Dias
On Fri, Feb 21, 2014 at 6:26 PM, Martin Dias wrote: > On Fri, Feb 21, 2014 at 2:14 PM, Benjamin > 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 >

Re: [Pharo-dev] Multiple-selection drag-and-drop

2014-02-21 Thread Martin Dias
On Fri, Feb 21, 2014 at 2:14 PM, Benjamin 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 openWit

Re: [Pharo-dev] Multiple-selection drag-and-drop

2014-02-21 Thread Benjamin
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 ].

[Pharo-dev] Multiple-selection drag-and-drop

2014-02-21 Thread Martin Dias
Hi, I'm looking for a "kind-of-list" spec model (or morph) in Pharo 3 that supports multiple-selection drag-and-drop. I tried with TreeModel, NewListModel and ListModel... they don't support. Note: NewListModel even doesn't support single-selection drag-and-drop... is this a known issue or should