Urgent Help needed....Tough one!

Ariez

Centurion
Joined
Feb 28, 2003
Messages
164
I got a custom control that HAS to be exposed in a treeview like manner. Something that looks like the pic enclosed. of course my control has a lot more funtionality.

When retracted the node would expose only 1 control summing up the details in the childs nodes(would be controls).

The Treview control can manage a huge structure but only exposes an icon and a string at each node , a node can't expose another control...!!!!

HOW DO I DO THAT (expose a control in an expandable tree), any ideas out there?
 

Attachments

You'll either have to write a control from scratch, or owner draw the treeview to provide this behaviour. Either way it's going to be a great deal of work. You should be able to add controls to a TreeView, but providing the layout and visibility logic will be quite difficult.

There is an example of owner drawing a treeview (in this case to provide multi-select functionality) somewhere on the windowsforms.net site.
 
Well, ur encouraging...I don't have that much time to focus on plastics though, i have to deliver a first shot mid march.
By the way I took your controls...I actualy was looking for that too... :) nice job.
I'm not into owner drawing that much, but ill take a look(if u got a link that would be welcome.) But i guess as u said, id better make it from scrach.
the idea would be an "object receiver" with a treeview angine to keep track of the structure. I didnt want to get into that, i thought the treeview could be tricked into this...
thanx..
 
There's a chance that it can, and I'm not sure which way I'd go about doing it if I were faced with the task. On the one hand once might be able to leverage the existing treeview layout engine and modify it, and on the other hand you could write it all yourself, but at least you'd know that you could do it.

A deadline of mid march for this project would scare me a little. Good luck :)
 
divil, where did you get the real office transparent icons in ur DotNetWidgets...???
 
They're just the standard office icons you can find in VS.NET\Common7\Graphics. The translucency is added in code.
 
Right, for those interested, set the "TransparentColor" property of the imageList to silver...that does it...thanx
 
Back
Top