Thanks for the very prompt and helpful reply!
Regards
Rob
Search found 2 matches
- Wed Jun 30, 2004 7:55 pm
- Forum: VCL
- Topic: Getting the root text of a TreeNodeShape
- Replies: 3
- Views: 12467
- Tue Jun 29, 2004 10:04 pm
- Forum: VCL
- Topic: Getting the root text of a TreeNodeShape
- Replies: 3
- Views: 12467
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...