TVirtualDrawTree.RootNodeCount Property

Virtual Tree View

Read or set the number of nodes on the top level.

Pascal
property RootNodeCount: Cardinal;
Description

Usually setting RootNodeCount is all what is needed to initially fill the tree. When one of the top level nodes is initialized you can set its ivsHasChildren style. This will then cause to ask to initialize the child nodes. Recursively applied, you can use this principle to create tree nodes on demand (e.g. when their parent is expanded).

Class
Links
What do you think about this topic? Send feedback!