.NET

Reply
Contributor
JohnB-HKS
Posts: 16
Registered: ‎02-14-2006
Message 1 of 3 (60 Views)

autocad 2006 Collapsible Panel

60 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
jimmie_fulton
Posts: 44
Registered: ‎04-06-2005
Message 2 of 3 (60 Views)

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
Message 3 of 3 (60 Views)

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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.