wxDataViewCtrl DnD on the empty area not possible
|Reported by:||lpoujoulat||Owned by:||VZ|
I ran in a (not so) little problem using DnD of wxDataViewCtrl: when dropping something on the control, the notifications are only triggered if the drop is done over an item. So there is no way to get notified if the drop is done on the unused area of the control, which is a real problem in some use case (imagine building a tree by DnD, and the situation at the beginning when there is nothing yet: you can never drop the first element !).
The solution would be to allow dropping on the unused part. In this case the Item in the event would just be set to an invalid one.
On the application side, the difference would be the code to receive DnD events with no valid item, which may be a problem for code that don't check items validity.
Under MSW and GTK, this can be implemented easily I think. Under MacOS, I couldn't find where it's managed :( So if some one could check ?
I'll provide a patch for that quickly.