I have a virtual tree with the following information:
- My node sample
- Folder 1
- File 1
- File 2
- Folder 2
- File 2.1
I have already defined OnInitNode and OnInitChildren so that the contents are rendered OK from my folder container.
If at startup I run this method
VstHierarchy.RootNodeCount := 1;
VstHierarchy.Expanded[VstHierarchy.RootNode] := TRUE;
My form is showing me only one node not expanded.
+ My node sample
instead of the whole expanded tree.
How can my code expand all nodes after running InitialiseHierarchyTreeView (This is running within a begin/end update)
Note: I need the nodes expanded only the first time. InitialiseHierarchyTreeView is run only once before a form is shown.