.NET

.NET

Reply
Distinguished Contributor
454 Posts
3 Kudos
Registered: ‎04-07-2003
Post 1 of 5

Keep PaletteSet from Starting Docked

143 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
454 Posts
3 Kudos
Registered: ‎04-07-2003
Post 2 of 5

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
3 Posts
0 Kudos
Registered: ‎03-09-2006
Post 3 of 5

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
454 Posts
3 Kudos
Registered: ‎04-07-2003
Post 4 of 5

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
39 Posts
0 Kudos
Registered: ‎07-26-2005
Post 5 of 5

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.
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!