delphi7组件编写者指南(翻译)

delphi7组件编写者指南(翻译)

ID:6615485

大小:86.50 KB

页数:33页

时间:2018-01-20

delphi7组件编写者指南(翻译)_第1页
delphi7组件编写者指南(翻译)_第2页
delphi7组件编写者指南(翻译)_第3页
delphi7组件编写者指南(翻译)_第4页
delphi7组件编写者指南(翻译)_第5页
资源描述:

《delphi7组件编写者指南(翻译)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Delphi7组件编写者指南(翻译)Delphi7组件编写者指南(翻译)verviewofcomponentcreation组件创建概述ThischapterprovidesanoverviewofcomponentdesignandtheprocessofwritingcomponentsforDelphiapplications.ThematerialhereassumesthatyouarefamiliarwithDelphianditsstandardcomponents.本章提供一个组件设计和用Delphi应用程序开发组件的概述。本资料这里假设你

2、熟悉了Delphi语言和它的标准组件。?Classlibrary?Componentsandclasses?Creatingcomponents?Whatgoesintoacomponent??Creatinganewcomponent?Testinguninstalledcomponents?Testinginstalledcomponents?InstallingacomponentontheComponentpaletteForinformationoninstallingnewcomponents,see“Installingcomponentpa

3、ckages”onpage16-10oftheDeveloper’sGuide.?类库?组件和类?创建组件?研究组件的什么?创建一个新的组件?测试未安装的组件?测试已经安装的组件?安装一个组件到组件面板上更多安装新组件的信息,请参见"Installingcomponentpackages"开发者指南16-10.Forinformationoninstallingnewcomponents,see“Installingcomponentpackages”onpage16-10oftheDeveloper’sGuide.Classlibrary类库Delphi

4、’scomponentsresideinacomponentlibrarythatincludestheVisualComponentLibrary(VCL)andtheComponentLibraryforCross-Platform(CLX).Figure1.1showstherelationshipofselectedclassesthatmakeuptheVCLhierarchy.TheCLXhierarchyissimilartotheVCLhierarchybutWindowscontrolsarecalledwidgets(therefore

5、TWinControliscalledTWidgetControl,forexample),andthereareotherdifferences.Foramoredetaileddiscussionofclasshierarchiesandtheinheritancerelationshipsamongclasses,seeChapter2,“Object-orientedprogrammingforcomponentwriters.”Foranoverviewofhowthehierarchiesdifferfromeachother,see“WinC

6、LXversusVisualCLX”onpage15-7oftheDeveloper’sGuideandrefertotheCLXonlinereferencefordetailsonthecomponents.Delphi的组件属于一个包含可视化和跨平台的组件库。图1.1显示了组成VCL组织结构的类的关系。CLX的组织结构类似于VCL的组织结构0但是Windowscontrols被称作widgets(因此TWinControl叫做TWidgetControl,例如)还有其他的不同点。更多的详细关于这些类的组织结构和继承关系的讨论,参看第二章。"组件编写者

7、面向对象的编程"。对于两者组织结构的如何不同,参见开发者指南第15-7"WinCLX与VisualCLX的比较"和参阅CLX在线关于组件细节的参考书目。TheTComponentclassisthesharedancestorofeverycomponentinthecomponentlibrary.TComponentprovidestheminimalpropertiesandeventsnecessaryforacomponenttoworkintheIDE.Thevariousbranchesofthelibraryprovideother,mor

8、especializedcapabilities.TCompone

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。