.NET

.NET

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

Keep PaletteSet from Starting Docked

142 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: 454
Registered: ‎04-07-2003
Message 2 of 5 (142 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 (142 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: 454
Registered: ‎04-07-2003
Message 4 of 5 (142 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 (142 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.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.