TAdvTreeView show check boxes for all Items

Hello,
I want to use AdvTreeView (Collection-based) to manage the user access to given categories. I want do this by use of check boxes. I am not able to show checkboxes for all node levels. I found in the faq an example which uses GetFirstRootNode(). The returned node is the first child from root node. Can you please give me a short example, how to iterate over all nodes and show check boxes for all available nodes in a tree view. In the best case in C++, but Delphi is also OK :slight_smile:

Hi,

You can use TAdvCheckedTreeView which has built-in support for checkboxes.

Hi Pieter,
thank you for the fast reply. I tried it in short. It seems that the property CheckType is by default tvntCheckBox. Could I show/hide all check boxes with one function.
I want to use the treeview to assign the access right for my applications categories, by an administrator. All checked categories (nodes) are visible for standard users. The unchecked nodes should be hidden.
Is the TAdvCheckedTreeView the right component? I achieved that with TAdvTreeView by means of GetTotalNodeCount() in combination with GetNodeForRow().

You can always override the type of checkbox for each node by using the OnGetNodeCheckType.