Search found 2 matches

by rob2xx2
Wed Jun 30, 2004 7:55 pm
Forum: VCL
Topic: Getting the root text of a TreeNodeShape
Replies: 3
Views: 12389

Thanks for the very prompt and helpful reply!

Regards

Rob
by rob2xx2
Tue Jun 29, 2004 10:04 pm
Forum: VCL
Topic: Getting the root text of a TreeNodeShape
Replies: 3
Views: 12389

Getting the root text of a TreeNodeShape

I used the following code to get the root text of a TreeNodeShape: function GetRootText(Shape: TTreeNodeShape): string; // Extract the text of the root of the tree that Shape belongs to. // Recurse back up the tree until there are no parents. var Ancestor: TTreeNodeShape; begin if Shape.Parents.Coun...