Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tree control and their checkboxes

Status
Not open for further replies.

jdeejay

Programmer
Oct 5, 2001
44
US
I would like to do something similar to the common interface seen when installing software (the tree structure with check boxes indicating what will/will not be installed). When the root item is selected (& not greyed out), all the child items are selected for installation. When only some of the child items are selected for installation, the check remains in the root level, but it is greyed out to denote that not all items will be installed.

My question: can someone point me in right direction of how to accomplish this. As a simple test, I have been able to open a DB and populate the tree and just print out to Msg box each item that has been checked. Now, how would I pick up on when the check box has been selected in the root to cascade to all the children and vice versa as it is happening. I'm sure I could do SetChecks afer the fact, but I want it on user clicks. Also, how would you grey the check box.

Thanks, any help will be appreciated.

J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top