添加工具选项板项
大家好,我使用C#
创建了一个AutoCAD工具选项板。我有两个问题:
1-如何更改工具选项板图标而不是AutoCAD默认图标
2-如何将项目添加到工具选项板,如(块或宏按钮)
这就是我得到的
,
public void CreateMyPalette()
{
if(ps == null)
{
ps = new Autodesk.AutoCAD.Windows.PaletteSet("Test");
ps.Style = Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowPropertiesMenu
| Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowAutoHideButton
| Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton;
ps.Opacity = 90;
ps.Size = new System.Drawing.Size(250,250);
ps.MinimumSize = new System.Drawing.Size(225, 200);
ps.Add("P1", new UserControl1());
ps.Add("P2", new UserControl2());
ps.Dock = Autodesk.AutoCAD.Windows.DockSides.Left;
ps.Visible = true;
}
else
{
ps.Visible = true;
}
}
**** Hidden Message *****
页:
[1]