FastReport VCL开发人员手册:脚本系统中的组件注册

本文介绍了FastReport VCL脚本系统中的组件注册。要从脚本中引用我们的组件,需要在脚本系统中注册其类、属性和方法。

要从脚本中引用我们的组件,需要在脚本系统中注册其类、属性和方法。注册代码,根据FastReport的要求,可以放在与组件代码文件同名的文件中,添加RTTI后缀(例如本例中的frxBitBtnRTTI.pas)。查看更多关于课程
FastScript 脚本库文档中的注册、方法和属性。

uses fs_iinterpreter, frxBitBtn, frxClassRTTI;type  TFunctions = class(TfsRTTIModule)  public    constructor Create(AScript: TfsScript); override;  end;constructor TFunctions.Create(AScript: TfsScript);begin  inherited Create(AScript);  with AScript do  begin    { register class, and then define its parent }    AddClass(TfrxBitBtnControl, 'TfrxDialogControl');    { if there are several common controls in your unit, they can be registered right here }    { for example, AddClass(TfrxAnotherControl, 'TfrxDialogControl'); }  end;end;initialization  fsRTTIModules.Add(TFunctions);end.

如果您对 FastReport 感兴趣,欢迎加入 FastReport QQ 交流群:702295239

还想要更多吗可以点击阅读【FastReport报表2021最新资源盘点】查找需要的教程资源。上是FastReport .NET慧正在网火热销售中!>>查看价格详情

标签:

来源:慧都网

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年6月1日
下一篇 2021年6月1日

相关推荐

发表回复

登录后才能评论