just when I think I’m getting good, I go get barfled.
here’s the script
composite of 2 components
I first of all had the ListBox handling mouseDrag and calling startDragging. It was creating an image of all selected rows as dragImage and using entire ListBox as dragComponent (it knows how to drop all its selected items on the target.
pish, gets stuck 1/2 inch max from start pos.
tried creating a special container class to use as dragComponent (trying allsorts here)
moved mouseDrag into MyRowComponent with “this” as dragComponent.
then tried the mouseDrag/startDragging in my MyHighlyGraphicalComponent.
drags beatifully! even from the ListBox.
I can easily modify MyHighlyGraphicalComponent to have it’s own label but MyRowComponent has some funtionality that would be well out of place in MyHighlyGraphicalComponent but extremely usefull for dropping!
I’ll forget trying to drag MyRowComponents for the minute and have a rethink.