S
shuzhenqiu520
Unregistered / Unconfirmed
GUEST, unregistred user!
for I := 0 to TreeView.Items.Count - 1do
// Iterate
begin
if TreeView.Items.Selected then
begin
TreeView.Items.ImageIndex:=1;
TreeView.Repaint;
end
else
begin
TreeView.Items.ImageIndex:=0;
TreeView.Repaint;
end;
end;
// for
这代码为什么不能实现呢???
// Iterate
begin
if TreeView.Items.Selected then
begin
TreeView.Items.ImageIndex:=1;
TreeView.Repaint;
end
else
begin
TreeView.Items.ImageIndex:=0;
TreeView.Repaint;
end;
end;
// for
这代码为什么不能实现呢???