Sign in to follow this  
Followers 0
capricorn33

something similar to XMLDOM:s DocFragment for GUICtrlTreeview?

3 posts in this topic

#1 ·  Posted (edited)

Hello, newbie needing a little advice

I 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=19848

When using them it's quite easy and fast to move a bunch of nodes to another place in the XML-structure.

node1

node2

node3

------subnode1

------subnode2 <----- you can for example pick this node and move it and all its children anywhere

-------------subnode1

-------------subnode2

node4

BUT...

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... :whistle:

capricorn33

Edited by capricorn33

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 be

happy to hear it. :P

If I come up with anything myself I will surely let you know.

cheers

cap

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0