04-23-2002, 11:02 AM
I'm looking for a Tree View which can be combined with Checkboxes.
So if you click on a Checkbox found in an element of the Tree View this branch collapses and reveals further branches.
Do you know where I can find this Control?
04-23-2002, 11:10 AM
It looks like this
|X| means Checkbox.
If you check the Checkbox, another branch collapses. (See the first Checkbox above. The +,- are optional.
04-23-2002, 11:19 AM
Where exactly did you see this "control"? And why are you even so sure it IS a "control"?
04-23-2002, 11:41 AM
These "special" controls you speak of are ordinary controls that have been modified by a good programmer. You can subclass most controls to achieve amazing effects, and one of these is adding checkboxes.
You might be able to buy them somewhere, but we can't really help you with that.
As Orbity stated in the other thread, you have to design your own, or modify an existing control, and that, we can h elp with. :)
04-23-2002, 12:25 PM
Whats wrong with the normal + and - for expanding and collapsing the tree? :confused:
04-23-2002, 12:52 PM
I think he wants a checkbox *after* the item like this:
|---- + Item1 [x]
|---- + Item2 [x]where [x] is a checkbox.
Oops, didn't read his question right. I agree with Squirm - what is wrong with normal + - boxes?
04-23-2002, 01:48 PM
You don't mean this?
04-25-2002, 02:52 PM
Yes!! This would be it exactly! Would there be a possibility to get it?
04-25-2002, 03:15 PM
here's a similiar one.
04-25-2002, 03:27 PM
If you can't afford that one, then you have to write your own. You can do it with some heavy subclassing (and an awful lot of trial and error) but its not for the faint hearted. Get back to us if you do want to do this and we can point you towards some decent tutorials on subclassing, but we won't do it for you.
04-25-2002, 07:41 PM
What if you just set the Checkboxes property of the TreeView
control to True?
04-26-2002, 08:32 AM
It's indeed a normal TreeView control with the checkboxes property activated.
04-26-2002, 08:51 AM
I *was* wondering why people were going on about subclassing.
04-26-2002, 11:08 AM
Ahem... /me hides in corner. Didn't know about that one. :(