大家好,
我使用C#
创建了一个AutoCAD工具选项板。我有两个问题:
1-如何更改工具选项板图标而不是AutoCAD默认图标
2-如何将项目添加到工具选项板,如(块或宏按钮)
这就是我得到的
,
[/code]
- 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;
- }
- }
本帖以下内容被隐藏保护;需要你回复后,才能看到! 游客,如果您要查看本帖隐藏内容请 回复 |