Ariez Posted February 28, 2003 Posted February 28, 2003 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? Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
*Gurus* divil Posted February 28, 2003 *Gurus* Posted February 28, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Ariez Posted February 28, 2003 Author Posted February 28, 2003 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.. Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
*Gurus* divil Posted February 28, 2003 *Gurus* Posted February 28, 2003 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 :) Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Ariez Posted March 1, 2003 Author Posted March 1, 2003 divil, where did you get the real office transparent icons in ur DotNetWidgets...??? Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
*Gurus* divil Posted March 2, 2003 *Gurus* Posted March 2, 2003 They're just the standard office icons you can find in VS.NET\Common7\Graphics. The translucency is added in code. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Ariez Posted March 2, 2003 Author Posted March 2, 2003 Right, for those interested, set the "TransparentColor" property of the imageList to silver...that does it...thanx Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.