Treeview Tutorial

Posted on 2005-05-16
Last Modified: 2007-12-19
Greetings experts,

I was wondering if anyone could provide me with some tutorials (both in depth and basic) which detail how to use the Treeview component. Although i have no problem using this component, i do get confused on the usage of  add, addchild, addchildfirst and so on.
I am looking for a tutorial which shows me the correct methods for adding nodes, finding nodes, adding a child to a particular node, aswell as removing a child from a particular node (or deleting a whole node entirely).
I have found certain articles, but i would like to read more :)

Kind Regards
Question by:Greenandroid
    LVL 2

    Author Comment

    Oh, i also forgot to add that i need to find a way of adding a child to a parent node, by just knowing the caption that the parent node has. As an example of this, i would need to add a child node with the caption 'test1' to the parent node with the caption 'parent'

    LVL 1

    Accepted Solution



    This one has some excellent tutorials on using the TTreeView...

    And here are a couple more you can try...
    LVL 11

    Assisted Solution

    The problem you will get by doing that with the caption... is that when you will have two captions alike... (test1 and test1) The code you can write from the tutorials will end up adding the child to the first test1.. if you write a code for finding the caption in the tree.
    It's a little delicate this one.
    Except...If you assign a unique code to each node.
    Well a lot of words here... and above you have the tutorials.
    Good luck
    LVL 2

    Author Comment

    Thanks for your help folks.

    Much appreciated.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now