Display subnode when parent node is hidden

Is there a way to show subnode if the parent node is hidden in the Virtual String Tree ?

I have some tasks in the tree structure and I wish to display only tasks which belongs to the current user as the list, but from all levels. What I've done is the function to display a list, which hides tree buttons, tree lines, sets the fixed indent and enable toShowHiddenNodes option. Then in this function I iterate through the whole tree (all levels) and hide nodes which doesn't belong to the current user IsVisible[Node] := False and show those which belongs him IsVisible[Node] := True , but the subnodes which should be displayed are invisible when their parent is hidden.

VT.TreeOptions.PaintOptions
- toShowButtons
- toShowTreeLines
+ toFixedIndent
+ toShowHiddenNodes

替代文字


否。不可见节点的子节点也是不可见的,除非将它们移动到可见父节点或顶层(无父节点)。

链接地址: http://www.djcxy.com/p/34998.html

上一篇: 在边缘上方/附近拖动时滚动TTreeView

下一篇: 父节点隐藏时显示子节点