zoukankan      html  css  js  c++  java
  • econtrol form designer添加三方控件

    econtrol form designer添加三方控件支持

    修改StdRegComps.pas单元

    1.添加引用单元进来

    uses

        {$IFDEF EHLIB}
         DBGridEh, PrnDbgeh, GridsEh, DBCtrlsEh,
        {$ENDIF}

        {$IFDEF DBANYWHERE}
        remotestoredproc, remoteupdatesql, remoteudpconnection, remoteudpdataset,
        applicationupdate, remotetcpconnection,
        {$ENDIF}
        {$IFDEF RAIZE}
        RzEdit, RzPanel, RzSplit, RzCommon, RzTabs, RzBtnEdt, RzButton,
        RzTray, RzBHints, RzDBEdit, RzDBBnEd, RzDBChk, RzDBCmbo, RzGrids,
        RzDBList, RzDBGrid, RzListVw, RzTreeVw, RzCmboBx, RzChkLst, RzLstBox,

        {$ENDIF}

    2.添加控件的图标文件进来

        {$IFDEF EHLIB}
          {$R EhlibReg.dcr}
        {$ENDIF}
        {$IFDEF DBANYWHERE}
          {$R remotedataset.dcr}
        {$ENDIF}
        {$IFDEF RAIZE}
          {$R RaizeComponentsVcl_16x16.dcr}
          {$R RaizeComponentsVcl_24x24.dcr}
          {$R RaizeComponentsVcl_32x32.dcr}
        {$ENDIF}

    3.注册三方控件

    procedure StandardRegister;
    begin
      {$IFDEF EHLIB}
      RegisterComponents('Ehlib', [TDBGridEh, TPrintDBGridEh, TDBEditEh,
        TDBDateTimeEditEh]);
      {$ENDIF}
      {$IFDEF DBANYWHERE}
      RegisterComponents('DBAnyWhere', [TRemoteUdpDataSet, TRemoteUdpConnection,
        TApplicationUpdate, TRemoteStoredProc]);
      {$ENDIF}
      {$IFDEF RAIZE}
      RegisterComponents('Raize', [TRzPanel, TRzButton, TRzButtonEdit, TRzSizePanel,
        TRzToolbar, TRzStatusBar, TRzBalloonHints, TRzPageControl, TRzTrayIcon,
        TRzEdit, TRzDBGrid, TRzStringGrid, TRzDBEdit, TRzDBButtonEdit, TRzDBMemo]);
      {$ENDIF}

    。。。。。。

  • 相关阅读:
    ASP.NET Boilerplate
    Financial.IPmt/Financial.PPmt
    VB内部函数(三)——财务函数
    Convert VB.NET to C#
    MySQL 使用自增ID主键和UUID 作为主键的优劣比较详细过程(从百万到千万表记录测试)
    Oauth2.0客户端服务端示例
    一张图搞定OAuth2.0
    使用JAVA实现的一个简单IOC注入实例
    谈谈对Spring IOC的理解
    秒懂,Java 注解 (Annotation)你可以这样学
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/2940689.html
Copyright © 2011-2022 走看看