hi, here is my problem, i have a custom myPanel. And I want to drag from one myPanel and then drop on another myPanel.
Should I inheritite myPanle from wxDropTarget.
And while the dragging, I still want to do sth else(eg, draw a line ended with the mouse position in the MouseMotion event), so the DoDragDrop compatible with this?
can the MouseLeftButtonUp implement the drop functionality without / instead of the wxDropTarget?
about DND, and mouseMove
-
- Experienced Solver
- Posts: 92
- Joined: Tue Aug 12, 2014 3:46 am
Re: about DND, and mouseMove
actually I just want to LButtonDown on one panel, and then drag to another panel, then LButtonUp, at last draw a line between them,
(1)if i just link them without sending any data, should I still use the DND of wxWidgets.....another way is to just check the boundingbox the panel when LButtonUp, but that is slow cause have to iterate all the panels.
(2)if I want to send some data, how I use the DND as I said yesterday.
(1)if i just link them without sending any data, should I still use the DND of wxWidgets.....another way is to just check the boundingbox the panel when LButtonUp, but that is slow cause have to iterate all the panels.
(2)if I want to send some data, how I use the DND as I said yesterday.
-
- Moderator
- Posts: 19163
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: about DND, and mouseMove
I've never used the wxWidgets DnD api so i can't help much with it. But i'm pretty sure both ways (with or without it), are possible.
Use the source, Luke!
-
- Experienced Solver
- Posts: 92
- Joined: Tue Aug 12, 2014 3:46 am
Re: about DND, and mouseMove
Thank you, and anyone familiar with this problem?