Tree Control Move siblings in list. Drag?

Started by Jim · 2018-12-16 02:07 UTC · 4 replies · SMF topic #2643

Its has been years since I worked on the tree control? I have a list of siblings and need to change the order they appear. Like move Full-Face above Pocket in .png. Is it easy to implement dragging them in Tree the column? The other option is to launch another form to manage the list order.
Any Ideas?
Attachments
Hi, if I understood right, you want to move the last item to the top. I always overrided the built-in technology using DragBegin, DragOver and Drop event. Then I removed the dragged item and inserted it before the dropped item.

Regards, Fred
Hi Fred, That helps. Does the item being dragged by built in means change in anyway, besides its new position?
author=Jim Short link=topic=2643.msg13088#msg13088 date=1544974164 wrote:
Hi Fred, That helps. Does the item being dragged by built in means change in anyway, besides its new position?

Hi, Jim , I never use built in drag drop functionality because I always have to check the result by dragover.
So feel free to build a small sample to see if the built in technology already matches your needs.
Fred
Thanks Fred!