界面库

小修改
This commit is contained in:
JianjunLiu 2022-10-10 09:45:33 +08:00
parent 9f6742851d
commit 25cc144bb7
1 changed files with 4 additions and 2 deletions

View File

@ -486,7 +486,7 @@ type TcustomTreeCtlNode = class(TVirtualListItem)
begin begin
while ItemCount>0 DO while ItemCount>0 DO
begin begin
DeleteChildNode(FItems[0]); DeleteNodeByIndex(0);//DeleteChildNode(FItems[0]);
end end
r := false; r := false;
end end
@ -1862,7 +1862,9 @@ type TcustomTreeCtl = class(TVirtualList)
begin begin
if FRootItem then if FRootItem then
begin begin
flockchangedcall := true;
FRootItem.DeleteChildren(); FRootItem.DeleteChildren();
flockchangedcall := false;
end end
end end
property CurrentNode read FCurrentNode; property CurrentNode read FCurrentNode;