Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 31.08.04 08:23 
Hey,
kann mir jemand sagen wie ich einen Zweig vom Zweig erstelle?
Also Beispiel: ich habe den Ersten Zweig X, den klappe ich auf wenn ich auf wenn ich auf das Plus-Symbol gehe. dann sehe ich die Unterzweige von X. Das habe ich hinbekommen.
Und jetzt einen Unterzweig vom Unterzweig. Wie geht das? Also unter X ist dann z.B Y und Y möchte ich auch aufklappen können.

mfg
moloch
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 31.08.04 10:31 
Hallo!

Du erstellst den Unter-Untereintrag genauso wie den ersten Untereintrag.

Zeig doch mal wie du die Einträge erstellt hast.

Gruß
Tino
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Di 31.08.04 10:40 
Kurz und knapp:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var Vater,Kind,Enkel:TTreeNode;
begin
  Vater:=TV.Items.AddChild(NIL,'Vater');
  Kind:=TV.Items.AddChild(Vater,'Kind');
  Enkel:=TV.Items.AddChild(Kind,'Enkel');
end;


Cu,
Udontknow
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 31.08.04 14:10 
hallo,
danke für die antwort.
das ist knapp und gut
mfg
moloch