Doesn’t the TableListBox support drag and drop to rearrange rows? Similar to TreeView, where a line gets drawn between two items before the selected item(s) get dropped.
The visualization of the target location isn’t very important, but the basic functionality of rearranging rows with the mouse would be great to have. E.g. for playlists, items to process, …
Do I have to implement this myself by inherit from TableListBox and DragAndDropTarget? Or is it already available in TableListBox/TableListBoxModel and I just couldn’t figure out how?
I’ve been trying to fight with this myself via ListBox and TreeView for the past few days. TreeView is obviously the easiest way, but I’ve also seen several forum posts from 2010-2012 where people were trying to figure out how to do Drag-And-Drop to Reorder Rows for the ListBox class. Most of the replies were “you gotta figure it out yourself”.
What’s the reasoning behind ListBox not supporting Drag-To-Reorder by default?
Why doesn’t the JuceDemo show how to implement this?
Is TreeView the proper tool for having a Drag-To-Reorder GUI element in a project?
relevant threads with no, or non-clear (“figure it out yourself”) answers:
Actually I think that was a stupid question. The problem may be elsewhere.