.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Keep PaletteSet from Starting Docked

4 REPLIES 4
Reply
Message 1 of 5
RonnieWilkins
312 Views, 4 Replies

Keep PaletteSet from Starting Docked

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.
4 REPLIES 4
Message 2 of 5

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.
Message 3 of 5
luidee
in reply to: RonnieWilkins

Could you specify what you did? Because i'm having the same issue.. Thanks
Message 4 of 5

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.
Message 5 of 5
mahersy
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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost