Autor Beitrag
avenger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Di 05.05.09 15:15 
Ich habe folgendes (für euch warscheinlich triviales) Problem. Aber ich stehe gerade richtig auf dem Schlauch....

Folgende Tree View erstelle ich während der Laufzeit:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
for i := 0 to ServerBrowser.Count-1 do 
  with ServerBrowser[i] do
  begin
       Node:= TreeView1.Items.Add(NIL, Servername);
       Node:= TreeView1.Items.AddChild(Node, 'ClsID');
       TreeView1.Items.AddChild(Node, ServerClsId);
       Node:= TreeView1.Items.Add(Node, 'Version');
       TreeView1.Items.AddChild(Node, version);
  end;

Nun zeigt mir das Tree view eine Liste von Servern an. Beim klicken auf den Serverknoten möchte brauche ich nun den Servername als String. Wie geht das ?!

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 05.05.09 15:39 
Moin!

Probier mal:
ausblenden Delphi-Quelltext
1:
ShowMessage(TreeView1.Selected.Text);					
cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
avenger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Di 05.05.09 15:44 
oh mann wie peinlich, aber ich habs einfach nicht gefunden.

danke !