我对……相当陌生。面向AutoCAD的. net编程(曾经做过一段时间lisp)。我现在正试图创建一个工具面板,从这里我可以应用一些我为dimension style & stuff编写的代码...我试着跟着“AutoCAD。NET API培训”第4节,它似乎涵盖了创建toolpalette的基础知识。因此,它实际上工作,我可以看到调色板,但我的按钮在AutoCAD中是不可见的(空的工具调色板)。我错过了一些东西...
这是我的班级;
- Public Class DimStylePalette
- Public myPaletteSet As PaletteSet
- Public myPalette As UserControl1
- _
- Public Sub palette()
- If (myPaletteSet = Nothing) Then
- myPaletteSet = New PaletteSet("My Palette", New Guid("33EB0D00-1036-439B-8B27-A11BA4669211"))
- myPalette = New UserControl1
- myPaletteSet.Add("My Palette", myPalette)
- End If
- 'The tool palette sets title bar can have the standard Close, AutoHide and Options buttons turned on by setting the Style property
- myPaletteSet.Style = PaletteSetStyles.ShowPropertiesMenu Or _
- PaletteSetStyles.ShowAutoHideButton Or _
- PaletteSetStyles.ShowCloseButton
- myPaletteSet.Visible = True
- End Sub
- End Class
非常感谢您的帮助...
谢谢!
本帖以下内容被隐藏保护;需要你回复后,才能看到! 游客,如果您要查看本帖隐藏内容请 回复 |