Home > database >  The question of the treeview control, thank you for your answer
The question of the treeview control, thank you for your answer

Time:10-03

My aim is to:
I selected in the treeview control a subdirectory, after I delete the directory, directory in order to fill, such as directory "3.3.2.3 my home," after I delete "3.3.2.2 tomorrow will be better", "3.3.2.3 my home" automatically become "3.3.2.2 my home
"Want to write a complete the function of the code

CodePudding user response:

To regenerate the tree again

CodePudding user response:

How to produce, hope you to write code for me? Thank you, really don't know

CodePudding user response:

At first how to come out of the tree?
You take out all the nodes, remove the deleted, generated in tree

This is just a stupid way, must can do it, may also have a good method

CodePudding user response:

How do I get all the nodes, hope you specifically, I really don't understand, I just learned to PB, thank you, hope to have the right code is better

CodePudding user response:

Tree traversal, check the help! Without proper code!
Give you a hint: take the next node
Ll_handle=atv_tree. Finditem (NextTreeItem! , al_handle)

CodePudding user response:

I've done a check box tree, is according to the check box to select, generated with the choice of serial number sequence, 1,1.1 1.2.1.11... , don't know whether I told you is a thing,
Give you two ideas
1. Is to have no choice a recursive traversal of the tree, choose the things put them inside another temporary tree, then temporary tree traversal, generate serial number, but each time to traverse the first tree that you choose the tree if content much more special flowers, must be very slow,
2. Declare a structure array, used to store each node (including precursor node, and the subsequent node handles), every time add to add a node, and then modify the precursors of node point, and the subsequent nodes, according to the precursor and the subsequent will traverse the structure body is enough, so efficiency is much higher, but also a lot of trouble,
  • Related