D dalse Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-22 #1 要求:<br> 当选择子节点时,父节点也跟着选中,当所有子节点取消选择时,父节点也自动取消选择,当非全部子节点选择时,父节点为灰色选择状态.
H hanpengshan_00 Unregistered / Unconfirmed GUEST, unregistred user! 2008-05-22 #2 t: tdxdbtreelist;<br>node: Tcxtreelistnode;<br>top: integer;<br>node := t.focusednode;<br>top := node.level;<br>while (node <> nil) and (node.level > top) do<br>begin<br> node.selected := 父亲的选择状态<br> node := node.getnext;<br>end;
t: tdxdbtreelist;<br>node: Tcxtreelistnode;<br>top: integer;<br>node := t.focusednode;<br>top := node.level;<br>while (node <> nil) and (node.level > top) do<br>begin<br> node.selected := 父亲的选择状态<br> node := node.getnext;<br>end;