- 积分
- 367
- 明经币
- 个
- 注册时间
- 2003-2-21
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2003-3-2 18:53:00
|
显示全部楼层
晓东CAD控件ACAD二次开发ActiveX控件集
[转贴]
简介:
ACAD二次开发ActiveX控件集,包括:
1、颜色设置
2、层设置
3、HATCH填充
4、幻灯片管理
5、预览图
使用这些控件,可以让你的应用程序对话框和ACAD的UI表现相同了。
说明:4、幻灯片管理与Autodesk Developer Network 提供的控件是一样的,而且这个是免费控件,有帮助!
The Slide Control
Properties:
BSTR FileName; This property is the full path name of the slide you want to display. When changed the new slide file pointed by the new value is loaded in memory. The supported syntax are: c:\r14\support\chroma.sld c:\r14\support\acad.slb(AILOGO)
OLE_COLOR BkColor; An RGB color value for the background color.
OLE_COLOR FrColor; An RGB color value for the default color or B&W mode.
boolean BlackAndWhite; Display the slide regardless of the colors (use the FrColor value).
boolean DrawBorder; <Inactive>
boolean RespectRatio; Display the slide accordingly of the X/Y scales (1:1).
boolean UseFullSpace; Display the slide in the full control client area. If RespectRatio is set to TRUE as well, then the slide image may be partially invisible (it depends on the Slide control size). If RespectRatio is not set to TRUE then the image will be displayed on the full area of the Slide control regardless of the X/Y scales...
boolean AboutDisplay; If set to TRUE the control display the About box on the Right Mouse Button click, if set to FALSE it won't display it... Default is TRUE.
boolean Enabled; Enable/disable the control. Default is TRUE.
Methods:
void SetSlide(IUnknown* pSld); This method can not be used without a specific library. This method must be ignored by 3rd party developers if they do not have this library linked in their applications.
long Merge(BSTR fileName); To use like the 'FileName' property. However, that method allows you to temporary merge multiple slides together in the control display. To reset the control, reassign the 'Filename' property.
void AboutBox(); Displays the about box.
Events:
void LButtonDown(); Fire when the user click on the control with the left button of its mouse.
void LButtonDblClk(); Fire when the user double click on the control with the left button of its mouse.
void LButtonUp(); Fire when the user release the left button on the control.
void RButtonDown(); Fire when the user click on the control with the right button of its mouse.
void RButtonDblClk(); Fire when the user double click on the control with the right button of its mouse.
void RButtonUp(); Fire when the user release the right button on the control.
void MButtonDown(); Fire when the user click on the control with the middle button of its mouse.
void MButtonDblClk(); Fire when the user double click on the control with the middle button of its mouse.
void MButtonUp(); Fire when the user release the middle button on the control. |
|