How to avoid docking palette top or bottom

How to avoid docking palette top or bottom

andre_adc-dao
Advocate Advocate
852 Views
2 Replies
Message 1 of 3

How to avoid docking palette top or bottom

andre_adc-dao
Advocate
Advocate

Hi,

 

I've created my first palette using VB .Net 2005 for AutoCAD 2009. I'm able to anchor my palette to right or left. But if I anchor the palette to the top, it will fill my screen. How can I avoid to anchor my palette to the top or bottom like the Properties palette as example.

 

Regards

 

Andre

 

0 Likes
853 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Here is a start look in the docs under DockSides & PaletteSetStyles

 

Bottom = 0x8000 
Bottom dock site. 
Left = 0x1000 
Left dock site. 
None = 0 
No dock site. 
Right = 0x4000 
Right dock site. 
Top = 0x2000 
Top dock site. 

 

 

NameEditable = 0x10 
Palette style name editable. 
ShowAutoHideButton = 2 
Show auto hide button in palette set style window. 
ShowCloseButton = 8 
Show close button in palette set style window. 
ShowPropertiesMenu = 4 
Show properties menu in palette set style window. 
ShowTabForSingle = 0x40 
Shows the tab for palette style single. 
SingleRowDock = 0x200 
Displays a single row dock 
Snappable = 0x20 
Palette set style is snap-enabled. 
UsePaletteNameAsTitleForSingle = 0x80 
Use palette name as title for style single. 
0 Likes
Message 3 of 3

andre_adc-dao
Advocate
Advocate

Thank you very much,

 

I add this line to my code

 

m_ps.DockEnabled = DockSides.Left + DockSides.None + DockSides.Right

 

Where m_ps is my PaletteSet and it do the job.

 

Best regards,,

 

Andre

0 Likes