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
335
How to enable WinTree Drag and Drop on Windows form
posted

hi all,

How do I enable the most basic drag and drop on a WinTree Control?

I followed the drag and drop sample, but when I drag, the node doesn't move, only the node that's under the mouse pointer is highlighted.

thanks in advance.

Tony.

 

Parents
  • 69832
    Suggested Answer
    Offline posted

    There is a sample that ships with the SDK for the WinListView control, named 'WinListView DragDrop', which demonstrates this concept with a WinListView control. The sample was designed so that it could be easily modified to support a different control, with UltraTree being a perfect example. The .NET drag drop stuff is abstracted out into two interfaces which you implement for a given control, and you can get semi-transparent nodes to appear while they are being dragged. You should try to modify that sample for UltraTree and if you run into any problems, post here and we can try to help.

Reply Children