TreeView1.Selected.Count;的值为何总是0?
var
I : integer;
begin
TreeView1。MultiSelect:=True; //允许多选
I:=TreeView1.Selected.Count; //多选个数值总为0,请问这是不是有问题,怎么办呢?
showmessage(IntToStr(I));
for i:=0 to TreeView1.Selected.Count-1 do
begin
TreeView1.Selections[i];
showmessage(IntToStr(I));
end;
end;