zoukankan      html  css  js  c++  java
  • 脚本引擎注册将要使用的类,属性,方法,函数

    三方控件,通过使用IMPORT TOOL FOR SCRIPTER生成AP_XXX.PAS文件。在下面的例子中,增加对TPrintDBGridEh的支持。

    unit myScript;
    {$DEFINE PRINTDBGRIDEH}
    {$DEFINE XPMAN}
    interface

    implementation

    uses ap_DB, ap_DBGrids, ap_Controls, ap_Forms, ap_Windows, ap_SysUtils,
      ap_Messages, ap_Menus, ap_Classes, ap_Variants, ap_Graphics,
      ap_Dialogs, ap_ExtCtrls, ap_DBCtrls, ap_Buttons, ap_Grids,
      {$IFDEF PRINTDBGRIDEH}
      ap_PrnDbgeh,
      {$ENDIF}
      ap_ADODB,
      {$IFDEF XPMAN}
      ap_XPMan,
      {$ENDIF}
      atScript;

    initialization
      RegisterScripterLibrary(TatDBLibrary);      
      RegisterScripterLibrary(TatDBGridsLibrary);
      RegisterScripterLibrary(TatControlsLibrary);
      RegisterScripterLibrary(TatFormsLibrary);
      RegisterScripterLibrary(TatWindowsLibrary);
      RegisterScripterLibrary(TatSysUtilsLibrary);
      RegisterScripterLibrary(TatMenusLibrary);
      RegisterScripterLibrary(TatMessagesLibrary);
      RegisterScripterLibrary(TatClassesLibrary);
      RegisterScripterLibrary(TatVariantsLibrary);
      RegisterScripterLibrary(TatGraphicsLibrary);
      RegisterScripterLibrary(TatDialogsLibrary);
      RegisterScripterLibrary(TatExtCtrlsLibrary);
      RegisterScripterLibrary(TatDBCtrlsLibrary);
      RegisterScripterLibrary(TatButtonsLibrary);
      RegisterScripterLibrary(TatGridsLibrary);
      {$IFDEF PRINTDBGRIDEH}
      RegisterScripterLibrary(TatPrnDbgehLibrary);
      {$ENDIF}
      RegisterScripterLibrary(TatADODBLibrary);
      {$IFDEF XPMAN}
      RegisterScripterLibrary(TatXPManLibrary);
      {$ENDIF}

    end.
     

  • 相关阅读:
    HDU2045_LELE的RPG难题
    HDU2050_折线分割平面数
    HDU1159_最长公共子序列
    ASP.NET 页生命周期概述
    Hadoop编译
    .Hadoop NameNode单点问题解决方案之二 AvatarNode 部署
    Pig调试环境
    HADOOP综合应用架构之一 配置Secondarynamenode在另一台机器运行
    JAVA采用远程连接Hive
    Windows Server 2003 FTP服务器配置详解
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/2940944.html
Copyright © 2011-2022 走看看