Appropriate Data Structure for a TreeView?

BlitzMax Forums/BlitzMax Programming/Appropriate Data Structure for a TreeView?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What would be the appropriate data structure in which to store the contents of a TreeView?

I'm thinking of a TMap with the key being composed of each "branch" of the tree, delimited with another character of some kind.

But I've never used TreeViews before, and this is one of the more complex data structures I've dealt with in general. So I'd appreciate opinions from more experienced programmers on the best way to store this.