Drag and Drop Problems

David Woods wrote:

Robin,

I have submitted the bug report for event.GetPoint() on the wxPython
SourceForge page. (The wxPython website's "report a bug" link takes you to
the wxWindows SourceForge page, but there does not appear to be a way to
submit a bug report there. I hope I submitted the bug report in the right
place.)

No it should have gone to the wxWindows bug tracker. You must be logged in to SF to see the "Submit New" link.

I then fixed my code sample as you suggested. Thanks for the guidance.

Unfortunately, fixing this problem has revealed two other problems in the
Mac (and possibly the Linux) version of wxPython. (I don't have a Linux
box, but the original issue regarding event.GetPoint() was a problem on Mac
and Linux.)

Because they currently share the same generic wxListCtrl implementation.

The attached code works just the way I would expect it to on Windows, but
the following problems occur on the Mac:

First, the GiveFeedback() method is only getting called once, preventing the
program from providing differing feedback as you move the cursor. I've put
a "print" line in GiveFeedback() to demonstrate this.

Second, if you drop a Series node on another Series node, or a Collection
node on another Collection node, the drop is supposed to fail, and does on
Windows. What I see on the Mac is that the DropTarget OnData method
correctly recognizes that the drop is invalid and alters the wxDragResult
parameter accordingly, but the veto is not passed on through to the original
OnBeginDrag() method, which incorrectly reports that the drop was
successful. The last two "print" lines activated by an invalid drop show
this.

Should I submit another bug report, or did I screw up in my code somewhere?

I'm having trouble running this right now because I have too many things going on at once and I accidentally blew away my 2.4 install on my Mac (it's been on othe *those* days...) But if GiveFeedback is only being called once then I expect that this is a wxMac bug.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!