Rank: 4909 based on 15 downloads (last 30 days) and 1 file submitted
photo

Erik Koopmans

E-mail
Company/University
McGill University
Lat/Long
45.502388, -73.58168

Personal Profile:

 

Watch this Author's files

 

Files Posted by Erik Koopmans
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Jul 2012 Screenshot Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans listbox, uicontrol, gui, java, drag and drop, undocumented 15 4
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Erik Koopmans
Updated File Comments Rating
15 Aug 2013 Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans

Hi Soren, thanks! DND between listboxes would be useful - I'll look into it.

It would technically be possible with the current version of this function, by specifying your own DropCallback as an input (one that inserts the eventData.Transferable data into the list at the cursor location, if the source DropTarget is not the same as the destination). But you would run into at least one bug - the reorderableListbox still thinks it's in 'reorder' mode if you drop on something other than the listbox itself. With DND between listboxes, you'd be bound to run into this problem, and you'd be reordering the list you're trying to drop onto.

Earlier I decided this was an acceptable bug in reorderableListbox, but it would be nice to fix it anyway. In the process I'll try to build in the DND behaviour too. No promises that it'll happen soon, but I'll see what I can do!

Comments and Ratings on Erik Koopmans' Files View all
Updated File Comment by Comments Rating
28 Jul 2014 Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans Clayton Chu

Nice utility! Would be better if I could set the callbacks outside of the constructor. I modified this slightly to make it a class to do that and it works quite nicely.

15 Aug 2013 Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans Erik Koopmans

Hi Soren, thanks! DND between listboxes would be useful - I'll look into it.

It would technically be possible with the current version of this function, by specifying your own DropCallback as an input (one that inserts the eventData.Transferable data into the list at the cursor location, if the source DropTarget is not the same as the destination). But you would run into at least one bug - the reorderableListbox still thinks it's in 'reorder' mode if you drop on something other than the listbox itself. With DND between listboxes, you'd be bound to run into this problem, and you'd be reordering the list you're trying to drop onto.

Earlier I decided this was an acceptable bug in reorderableListbox, but it would be nice to fix it anyway. In the process I'll try to build in the DND behaviour too. No promises that it'll happen soon, but I'll see what I can do!

15 Aug 2013 Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans Soren Preus

Nice utility that works fine on my R2012b.

Is there any way to implement drag'n drop in between different listboxes?

22 Oct 2012 Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans Jonathan Lister

works great. enables drag and drop to other applications as well.

22 Oct 2012 Reorderable Listbox Creates a listbox whose contents can be reordered by clicking and dragging items. Author: Erik Koopmans Jonathan Lister

Contact us