capricorn33 Posted August 14, 2006 Share Posted August 14, 2006 (edited) Hello, newbie needing a little adviceI have searched the forum for some clues to this one, but haven't found any....I am building this little XML-editor using Eltoros' _XMLDOMwrapper and the _GUICtrlTreeView UDF.In XMLDOM it's pretty easy to move a node and all its childnodes at once using the DocumentFragment-command...I made some rough, custom functions to be used with the XMLDOMwrapper to achieve this.http://www.autoitscript.com/forum/index.php?showtopic=19848When using them it's quite easy and fast to move a bunch of nodes to another place in the XML-structure.node1node2node3------subnode1------subnode2 <----- you can for example pick this node and move it and all its children anywhere-------------subnode1-------------subnode2node4BUT...When I try to the similar thing in my treeview GUI (which is a direct representation of the XML-code where each xml-node is mirrored by a treeviewitem) I end up with lots and lots and lots of code......since i have to move one node at a time...Does anyone have a smart way of moving a bunch of treeviewitems (more correctly: one treeviewitem and all its children items) to another place in the treeviewitem structure?Thankful for any hints or suggestions... capricorn33 Edited September 15, 2006 by capricorn33 Link to comment Share on other sites More sharing options...
Uten Posted September 14, 2006 Share Posted September 14, 2006 Hi capricorn33,Did you ever figure this out? I'm interested in this kind of code to I'm also looking for some code showing how to rearrange subnodes with the mouse and/or buttons. Something similar to what you can do in "Help Workshop" with the arrow buttons but preferably by drag and drop to.I'm aware of the treviewhittest sample by wiredbits witch is a starting point but it has some errors that has to be weeded out. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
capricorn33 Posted September 15, 2006 Author Share Posted September 15, 2006 Did you ever figure this out? I'm interested in this kind of code to No, not yet. In fact, I haven't been looking at the problem lately.But maybe I will be returning to this project soon...So, if there is anyone who has an idea, hint or suggestion I would behappy to hear it. If I come up with anything myself I will surely let you know.cheerscap Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now