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}

    。。。。。。

  • 相关阅读:
    Nim or not Nim? HDU
    邂逅明下 HDU
    4.1.8 巴什博弈
    4.1.7 Cutting Game(POJ 2311)
    0.1.2 max_element和min_element的用法
    bzoj 2152 聪聪可可 树形dp
    hdu 5976 Detachment 脑洞题 猜结论
    hdu 5974 A Simple Math Problem gcd(x,y)=gcd((x+y),lcm(x,y))
    hdu 5971 Wrestling Match 二分图染色
    Codeforces 842C Ilya And The Tree 树上gcd
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/2940689.html
Copyright © 2011-2022 走看看