Hi,
I'm working on a wxTreeCtrl that should support drag and drop of node Items (using wxPyDropTarget) and files (using wxFileDropTarget).
I have no problem adding one of the drop targets to the tree control, but I can't find out how to support both at the same time.
Maybe I should use the wxDataObjectComposite, but I can't figure out how. I can add a wxFileDropTarget() to a wxDataObjectComposite but I can not add my subclass of the wxFileDropTarget (implementing OnDropFiles).
Any leads will be appreciated = )
/ronald
Ronald Jaramillo wrote:
Hi,
I'm working on a wxTreeCtrl that should support drag and drop of node Items (using wxPyDropTarget) and files (using wxFileDropTarget).
I have no problem adding one of the drop targets to the tree control, but I can't find out how to support both at the same time.
Maybe I should use the wxDataObjectComposite,
Yes.
but I can't figure out how. I can add a wxFileDropTarget() to a wxDataObjectComposite but I can not add my subclass of the wxFileDropTarget (implementing OnDropFiles).
Why not? Is there an error?
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!