Expandable checkboxes as in custom install applications

Posted on 2005-05-04
Last Modified: 2011-09-20

Does anyone know how you would go about implementing one of those checkbox trees that you see when you do  custom install of some applications, where there is a heirarchy of functions you can install.  You navigate up and down the tree by expanding and contracting it using plus an minus signs.  If one branch of the tree has only some of it's sub-branches selected, then it's tick is grey, if all are selected then it's black, if none are selected then it remains unticked.  

I would need actions attached to the checkboxes so that the program could respond to the ticking or unticking of a box in real-time.

Let me know if this is unclear.  I'm using 1.5.

Question by:steve_bagnall
    LVL 35

    Accepted Solution


    shows how to do the checkbox tree bit...

    then you would just need to add code to the selection event, to select/deselect all the children

    And alter the renderer to be grey if not all the children are selected...

    LVL 5

    Author Comment

    Cheers Tim.
    LVL 35

    Expert Comment

    No worries!  Let me know if you get stuck! :-)


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    728 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