Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Drag and Drop within Single UltraTree
posted

Hi,

i have done a drag and drop process within single UltraTree. i have basically four events

1.MouseDown Event(I get the cursor position)

2. MouseMove Event(Based on the left mouse button, i'm calling Tree.DoDragDrop() method. so that drag and drop happens.

3. DragOver Event(sets the drag and drop effects)

4. DragDrop Event for the all the processing either copy,move or link.

 it does the drag and drop successfully, where as after drag and drop, if i click on any folder in the tree, the drag and drop event occurs again, bcoz of mouse move i have written. how i can proceed with this? help me.

Parents
No Data
Reply
  • 1912
    posted

    On the MouseMove Event don't call dodragdrop until the mouse has moved a distance from the position you captured in the MouseDown event

Children
No Data