Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

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..

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

  • *Gurus*
Posted

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 :)

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted
divil, where did you get the real office transparent icons in ur DotNetWidgets...???

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

Posted
Right, for those interested, set the "TransparentColor" property of the imageList to silver...that does it...thanx

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...