.NET

Reply
Contributor
16 Posts
0 Kudos
Registered: ‎02-14-2006
Post 1 of 3

autocad 2006 Collapsible Panel

62 Views, 2 Replies
03-21-2006 08:35 AM
I am trying to use an AutoCAD 2006 Collapsible Panel in my windows user control. I can insert the control fine but when I try to add other controls to the Collapsible Panel it is just ignored. I was thinking that this tool would work just like a panel. Where I could just drag and insert the controls I need into it. Could anyone explain to me how these things work?

Thanks
Active Contributor
44 Posts
0 Kudos
Registered: ‎04-06-2005
Post 2 of 3

Re: autocad 2006 Collapsible Panel

03-21-2006 09:59 AM in reply to: JohnB-HKS
I can explain it.... it's a real pain in the a**! No design-time support, and it has some odd behavior to it. For instance, in collapsed state there is a large margin at the bottom of the control (you'll need to handle the collapse event and change the size of the control to 25 I or something like that).

The way I've worked with it is to create usercontrols that have all of my treeviews, buttons, etc, and then add the usercontrol to the panel programatically. You need to position and dock it yourself through code based on the panel's current height, width, etc. Also, you'll need to expose events and properties to your usercontrols so that they can communicate with each other.

I've since created my own version, going so far as to duplicate the look and feel of the collapsible panels that Autodesk uses in their palettes. Works very nicely and has design-time, drag-and-drop ease of use. I'm going to add support for embedded buttons in the panel header that can be turned on/off and the ability to set the button images. I'm also working on making a custom layout container (or several) that automatically enables collapsing behavior and sizes each panel. Perhaps when I've added a little polish I'll make it available... (for VS2005 only).
*Tony Tanzillo
Post 3 of 3

Re: autocad 2006 Collapsible Panel

03-21-2006 06:11 PM in reply to: JohnB-HKS
Are you referring to the CollapsablePanel that wrote
about in another post?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5116826@discussion.autodesk.com...
I am trying to use an AutoCAD 2006 Collapsible Panel in my windows user control. I can insert the control fine but when I try to add other controls to the Collapsible Panel it is just ignored. I was thinking that this tool would work just like a panel. Where I could just drag and insert the controls I need into it. Could anyone explain to me how these things work?

Thanks
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!