Thanks for that (and for being so quick!)
I've set the DragMode property to be automatic - and I can now drag the container.
But ... I'm merely moving it around within the FORM, not to another object. When I release it, it goes back to its original position.
What's the difference between DragMode and OLEDragMode? The help topics give me the impression that I need to use OLEDragMode if I want to drag data to another application, but that it makes no difference if, as here, I'm just working within FoxPro. If I set OLEDragMode to 'automatic' and try dragging, then it doesn't work. The cursor changes to a circle with a diagonal bar, which I take to mean "don't even try it".
Main Topics
Browse All Topics





by: tusharkanvindePosted on 2009-08-05 at 22:20:50ID: 25030284
You can make the drag mode automatic. That will allow the user to move the container around. This also fires the OLEStartDrag of the container.
When the user drops the container, the object on which it is dropped fires its dragdrop event. so you have to code in that object and not in the object that is being dragged.