Hi!

I have a tree view which display different object. Some of the objects are groups of objects. I want to take a object and drag it and release it into a group. If the object can be put into the object it is inserted, otherwise the object is replaced where the dragging started.

I have not found much about the drag and drop thing so I'm not sure about which components to use. I can drag a object, but it is displayed as a big floating icon and I want just a line (when between two objects) showing where in the tree the object will be put if I drop it, when the dragged object is dragged over a object it should highlight it or something showing that the dragged object will be placed in this one if dropped... the dragging and dropping is only allowed in the same tree view.

I hope you get the picture....

Any tips on where I should start look for this? Any good sample code or functions I can use?


/pir