K
kouchun
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TfrmMain.Init;
var
TN1,TN2:TTreeNode;
i:integer;
begin
TV1.Items.Clear;
tn1:=tv1.Items.Add(nil,'hello');<--------??
tn1.ImageIndex:=1;<--------??
with dm1 do
begin
for i := 0 to sltRooms.count - 1 do
begin
tn2:=tv1.Items.AddChild(tn1,sltRooms.Names);<--------??
tn2.ImageIndex:=1;<--------??
end;
end;
tv1.FullExpand;<--------??
end;
when tn1,tn2,can make tv1 chagne
var
TN1,TN2:TTreeNode;
i:integer;
begin
TV1.Items.Clear;
tn1:=tv1.Items.Add(nil,'hello');<--------??
tn1.ImageIndex:=1;<--------??
with dm1 do
begin
for i := 0 to sltRooms.count - 1 do
begin
tn2:=tv1.Items.AddChild(tn1,sltRooms.Names);<--------??
tn2.ImageIndex:=1;<--------??
end;
end;
tv1.FullExpand;<--------??
end;
when tn1,tn2,can make tv1 chagne