.NET

Reply
Distinguished Contributor
RonnieWilkins
Posts: 453
Registered: ‎04-07-2003
Message 1 of 5 (139 Views)

Keep PaletteSet from Starting Docked

139 Views, 4 Replies
01-06-2006 11:55 AM
I am trying to stop my palette set from being docked upon startup. I cannot seem to get this...

PS = New PaletteSet("My Paletteset")
PS.Add("Test", New UltimateControl)
PS.Style = PaletteSetStyles.ShowAutoHideButton Xor PaletteSetStyles.Snappable
PS.MinimumSize = New System.Drawing.Size(250, 600)
PS.DockEnabled = DockSides.None
PS.Dock = DockSides.None
PS.Location = New System.Drawing.Point(20, 20)
PS.Visible = True
Ronnie Wilkins, Jr.
AMS CAD + CAFM Solutions
Sr. Solutions Developer
Autodesk Certified Instructor: Inventor
Distinguished Contributor
RonnieWilkins
Posts: 453
Registered: ‎04-07-2003
Message 2 of 5 (139 Views)

Re: Keep PaletteSet from Starting Docked

01-13-2006 11:38 AM in reply to: RonnieWilkins
Just an update...
It seams that I had to change a few lines of code around. But also had to show, hide, and then show again for the palette set to show correctly. If all I did was show the palette set, it came up garbled.
Ronnie Wilkins, Jr.
AMS CAD + CAFM Solutions
Sr. Solutions Developer
Autodesk Certified Instructor: Inventor
Member
luidee
Posts: 3
Registered: ‎03-09-2006
Message 3 of 5 (139 Views)

Re: Keep PaletteSet from Starting Docked

03-15-2006 06:37 PM in reply to: RonnieWilkins
Could you specify what you did? Because i'm having the same issue.. Thanks
Distinguished Contributor
RonnieWilkins
Posts: 453
Registered: ‎04-07-2003
Message 4 of 5 (139 Views)

Re: Keep PaletteSet from Starting Docked

03-16-2006 11:01 AM in reply to: RonnieWilkins
The following code seemed to fix my issue, though the first time my palette is shown on a new install you must first resize manually if you have more than 4 tabs...I have no clue why.

PS = New AcWi.PaletteSet("My New Palette", New System.Guid("{E62F3B19-CD41-4814-A499-B2637A0090E7}"))

'Load a UserControl to the palette
Dim AutomatedShapesUC = New UIAutomatedShapes
PS.Add(AutomatedShapesUC.Text, AutomatedShapesUC)

PS.Style = AcWi.PaletteSetStyles.ShowAutoHideButton Xor AcWi.PaletteSetStyles.Snappable
PS.MinimumSize = New System.Drawing.Size(250, 600)
PS.DockEnabled = AcWi.DockSides.None
PS.Location = New System.Drawing.Point(20, 20)
PS.Visible = True
PS.Dock = AcWi.DockSides.None
PS.Visible = False
PS.Visible = True
Ronnie Wilkins, Jr.
AMS CAD + CAFM Solutions
Sr. Solutions Developer
Autodesk Certified Instructor: Inventor
Active Contributor
Mahersy
Posts: 39
Registered: ‎07-26-2005
Message 5 of 5 (139 Views)

Re: Keep PaletteSet from Starting Docked

09-04-2006 07:19 AM in reply to: RonnieWilkins
This value:
New System.Guid("{E62F3B19-CD41-4814-A499-B2637A0090E7}"))
Enables the forms location to be stored in the registry. Just make sure that you generate a new Guid so that no other progs mess with it.
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.