DragDrop reorder nodes
-
I am looking for an intuitive way to allow users to reorder a treeview by dragging and dropping, though they can already drop on other nodes and update the hierarchy. So dropping on an item and inserting it before is not really an option. I currently have it such that when you dragover and right click you get a context menu that lets you insert before, but i'd like somehow to figure out when i'm inbetween two nodes. Anyone have any ideas. Tanka
-
I am looking for an intuitive way to allow users to reorder a treeview by dragging and dropping, though they can already drop on other nodes and update the hierarchy. So dropping on an item and inserting it before is not really an option. I currently have it such that when you dragover and right click you get a context menu that lets you insert before, but i'd like somehow to figure out when i'm inbetween two nodes. Anyone have any ideas. Tanka
I am afraid the treectrl we know is not designed for rearrangement. What I would see is, when drag has begun, the treectrl folds and unfolds itself according to the mouse position, add space between items then show a xor drawn item (or set of items) to preview what the treectrl would look like with this item dropped here. This requires work, but this would give you a lot of audience:cool: and attention...:cool:
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
-
I am afraid the treectrl we know is not designed for rearrangement. What I would see is, when drag has begun, the treectrl folds and unfolds itself according to the mouse position, add space between items then show a xor drawn item (or set of items) to preview what the treectrl would look like with this item dropped here. This requires work, but this would give you a lot of audience:cool: and attention...:cool:
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
I'll do what I can. I'm looking for quite a bit more in a Tree control (ie multiple checkboxes) so I may have some fun later on. Thanks though