| nType | (Long) Specifies whether the item is visible or hidden.
0 - Hides the item, i.e. collapses the parent item.
The onExpand event is triggered after the collapsing. 1 - Makes the item visible,
i.e. expands all necessary parent items, but does not change the position of the scrollbar in the tree, so the item can be located outside the visible section of the tree. The onExpand event is triggered after the expansion. 2 - Makes the item visible,
i.e. expands all necessary parent items, and sets the position of the scrollbar in the tree, so the item is located in the visible section of the tree. The onExpand event is triggered after the expansion. |
|---|
oTreeItem1.SetVisible(0);
// Hides the item
oTreeItem1.SetVisible(1);
// Makes the item visible
oTreeItem1.SetVisible(2);
// Makes the item visible and sets the position of the scrollbar