How to convert a palette to a usercontrol

How to convert a palette to a usercontrol

Anonymous
Not applicable
444 Views
3 Replies
Message 1 of 4

How to convert a palette to a usercontrol

Anonymous
Not applicable
When creating a paletteset, I add a usercontrol into paletteset like this:
ps.add(myUserControl)

then I want to change some setting of usercontrol after it's added, is there any way to reference the usercontrol like this:

myUserControl=ctype(ps.item(0),myUserControl)
0 Likes
445 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
no, but you can keep a reference to your
user control somewhere and use it.

--
http://www.caddzone.com

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

wrote in message news:5515285@discussion.autodesk.com...
When creating a paletteset, I add a usercontrol into paletteset like this:
ps.add(myUserControl)

then I want to change some setting of usercontrol after it's added, is there any way to reference the usercontrol like this:

myUserControl=ctype(ps.item(0),myUserControl)
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks for the answer. So what's the purpose of Palette Collection? seems not much we can do with palette. Why Autocad expose this interface?
0 Likes
Message 4 of 4

Anonymous
Not applicable
What's the purpose?

To provide a way to reference palettes.

All of the functionality is on the PaletteSet,
not the Palette.

If you need to associate palettes with the
controls they host, that's easily done by
just storing them in a hashtable.

--
http://www.caddzone.com

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

wrote in message news:5515384@discussion.autodesk.com...
Thanks for the answer. So what's the purpose of Palette Collection? seems not much we can do with palette. Why Autocad expose this interface?
0 Likes