Sorry for the delay, I turn off my emails during the week end :) Out of this thread, I have made this post: http://spec.st/docs/drag_n_drop/ With a small change in the Spec code base (to not sort by default, but only when a sorting block is specified), it gives an example of how to do what you want :)
(since it is not a crucial change, I do not think it will be introduced in 3.0, but the latest Spec image can be found here: http://benjamin.is-a-geek.com:9095/job/Spec/lastSuccessfulBuild/artifact/) Hope it helps, Ben On 04 Apr 2014, at 12:18, Goubier Thierry <thierry.goub...@cea.fr> wrote: > > > Le 04/04/2014 12:04, MartinW a écrit : >> Goubier Thierry wrote >>> By the way, any chance of having your code as an example for Spec? I >>> went through the spec documentation and I couldn't see anything similar, >>> and, from our difficulties to get that to work, I would guess a bit of >>> work on Spec drag and drop support could be a good thing. >> >> I just start investigating my ui possibilities with pharo for a new >> application. The code examples in this thread are all there is at the >> moment. > > Ok. Still, they offer a good working base for a specific use case. > >> Goubier Thierry wrote >>>> Are there other possibilities if i do not use Spec? >>> >>> Yes. Drag and drop code in Morphic is fairly similar. The Morphic code >>> for opening windows is certainly longer, however. >> >> Yes, there are more possibilities if i do it in pure Mophic/Polymorph? — or >> possibilites are quite similar? :) > > You get better control over what drag and drop means (including the ability > to control per-item if you will accept the target, or what to carry when the > drag starts), but the framework takes time to get into. > > Thierry > -- > Thierry Goubier > CEA list > Laboratoire des Fondations des Systèmes Temps Réel Embarqués > 91191 Gif sur Yvette Cedex > France > Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95 >