Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Mi 16.07.03 13:26 
Hi!

Ich weiß ja, wie man Unterpunkte etc. macht - aber eben nur, wenn ich davor den Node gespeichert habe - etwa so: tmp:= TV.Items.Add(tmp, CBSeiten.Text);
aber wie suche ich jetzt nach nem String (oder spring wie bei der StringList per Integer hin) und setzte da dann noch n Unterpunkt hinzu....!?
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 16.07.03 13:57 
ohne Gewähr (aus´m Kopf):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
tmp := nil;

with TreeView1.Items do
  for i := 0 to Count - 1 do
    if(Item[i].Text = 'Wassuchstedenn') then begin
      tmp := Item[i];
      break;
    end;

tmp := TreeView.Items.AddChild(tmp,'Unterknoten');