Message 1 of 5
How To Add Top Tool In AutoCAD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I use AutoCAD 2016 , and want to add a tool in picture location . 1. use PaletteSet , but when i dock top , this minHeight will bigger then i want so
has other interface or issues to show this?
if (PSet == null || PSet.Visible == false)
{
var window = new PatternSetWindow();
PSet = new PaletteSet("TYDI_Document");
PSet.Visible = true;
ElementHost host = new()
{
AutoSize = true,
Dock = DockStyle.Fill,
Child = window
};
PSet.Style = PaletteSetStyles.ShowCloseButton | PaletteSetStyles.ShowAutoHideButton | PaletteSetStyles.ShowPropertiesMenu | PaletteSetStyles.Notify ;
PSet.Add("TYDI_Document", host);
PSet.KeepFocus = true;
PSet.Size = new Size(1200, 30);
PSet.MinimumSize = new Size(1200, 3);
PSet.Dock = DockSides.Top;
PSet.DockEnabled = DockSides.Top;
//PSet.WindowState = Window.State.Minimized;
PSet.RecalculateDockSiteLayout();
}
}