2
What happens is that I created a Virtual String Tree in Delphi (Typhon64), but I don’t know how to add parent and child nodes to create the tree, I looked at the documentation but only found click events that creates deletes and edits nodes(Node), I need to create this dynamic tree until then I can do this only by using click event and adding the nodes with addChild(nil) method, but that’s not what I want what I want is that as soon as I load the form the Virtual String Tree already load with the nodes(nodes) and the name of the nodes and strings I define, no matter whether it’s string or an array of strings, since it creates the tree with parents and children I’m very grateful for the help!
until then my Virtual String Tree is like the image below:
http://oi59.tinypic.com/xl9jwz.jpg
I would like to create a tree as the example below, but the values I will define:
could attach the images in question? I do not have access to the company tinypic
– Caputo
Ready the image above would be the Virtual String Tree, I need to make a tree with parents and children equal to the image below, I can even add the elements but with click event, only I need to make it load the tree when open the form.
– Rodrigo Gregorio Neri
It wouldn’t just put in the onCreate event in the form what you did in the click event?
– Caputo
list.Addchild(nil); // list is id of the Virtual String Tree and Addchild is the method that adds the node(Node) that would be the parent element of the tree
– Rodrigo Gregorio Neri