I wasn't really sure what to put in the subject line ... I'm trying to write a class which would let me mimic basic outlining features. As you know, an outline--the kind you used to use in school--has headings, sub-headings, and sometimes even third or fourth level sub-headings (sub-sub-headings and sub-sub-sub-headings). A basic OutlineEntry class, I would think, would have fields representing the text in an outline entry + fields representing the text's position within an outline hierarchy:
I. Heading One --a. Sub-Heading One ----1. A second level subheading ----2. Another second level subheading My question is what data structure (and/or associated components) should I use to model an outline, given that users have to be able to insert new entries, delete entries, move entries up/down/in/out, etc. while updating all the positions for the rest of the OutlineEntry objects? It seems like there will be a lot of sorting going on. It also seems like there's probably some kind of ClientDataSet or XML "stuff" out there with build in methods that ought to be well suited for what I'm thinking about ... but I really have no idea where to start! Thanks, as always -- Al _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

