econtrol添加三方控件支持

修改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}

。。。。。。

你可能感兴趣的:(支持)