Autor Beitrag
Ice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Fr 14.02.03 14:57 
Hallo Leute,

Wie bekomme ich denn bei einer TreeView Komponente den Node als String? Ich möchte nämlich den Namen des Knoten als String weiterverwenden.

vielen Dank schonmal,

mfg
Ice
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 14.02.03 15:31 
Hallo,

ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.TreeView1Change(Sender: TObject; Node: TTreeNode);
begin
  if (Node<>nil) then ShowMessage(Node.Text);
end;


oder

ausblenden Quelltext
1:
2:
3:
  ...
  ShowMessage(TreeView1.Selected.Text);
  ...

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)