Custom image for dragged ListBox items


#1

Currently, it doesn't seem possible to set a custom image for the itmes of a ListBox that are dragged around (i.e. for which the ListBoxModel returns a non-null var from getDragSourceDescription())

What do you think about adding an Image& argument to the getDragSourceDescription() callback, where the ListBoxModel can put a custom image for the dragging operation, or leave it to null to use the default one?


#2

 

P.S. another acceptable solution could be to allow changing the image for the drag operation while the drag is in progress, adding a setCurrentDragImage() to DragAndDropContainer


#3

Yeah, changing the image might be a good idea.


#4

any chance of seeing this implemented anytime soon?


#5

Should be done now.