Q qq_tom1520 Unregistered / Unconfirmed GUEST, unregistred user! 2009-04-27 #1 Treeview1,用递归发显示时,能否只让根节点展开,子节点收起.
Z znxia Unregistered / Unconfirmed GUEST, unregistred user! 2009-04-27 #3 根节点是 TreeView1.Items[0];var I:integer;begin if TreeView1.Items.count=0 then exit; for I:=0 to TreeView1.Items[0].Count-1 do TreeView1.Items[0].Item.Expanded = false; TreeView1.Items[0].Expanded = trueend;
根节点是 TreeView1.Items[0];var I:integer;begin if TreeView1.Items.count=0 then exit; for I:=0 to TreeView1.Items[0].Count-1 do TreeView1.Items[0].Item.Expanded = false; TreeView1.Items[0].Expanded = trueend;