PDA

Click to See Complete Forum and Search --> : drag drop functionality with SSCommand


foxj
Mar 16th, 2001, 07:00 PM
I am trying to add drag drop functionality with an array of SSCommand controls. When the shift key is pressed and a control is dragged to another spot in the array it should move the control's data. When the Control key is pressed and the control is dragged it should copy the data. I have tried doing this two ways.

First, I used the drag method to set the control to drag mode. When I do this the event dragdrop does not get called.

Second, I set the controls tag field with a flag when I am dragging a control. Then I check the tag in the mouseup event. In the mouseup event the control index is the control I am trying to drag, not the control I drop onto.

I need a way to find out the index of the control I am dropping onto.

I am using win 2k and vb6.

Any help would be appreciated.