Jump to content

something similar to XMLDOM:s DocFragment for GUICtrlTreeview?


Recommended Posts

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
Link to comment
Share on other sites

  • 5 weeks later...

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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...