⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tntjvdbgrids_design.pas

📁 TntExUpdate 是 流行的 TntUnicodeControls控件的扩展包.包括很难找到的 TntJVCL 也在里面. TntSysUtils2.pas/TntSysUtilsEx.pa
💻 PAS
字号:
{*****************************************************************************}
{                                                                             }
{    Tnt Delphi Unicode Controls                                              }
{      http://www.tntware.com/delphicontrols/unicode/                         }
{        Version: 2.1.19                                                      }
{                                                                             }
{    Copyright (c) 2002-2005, Troy Wolbrink (troy.wolbrink@tntware.com)       }
{                                                                             }
{*****************************************************************************}

unit TntJvDBGridS_Design;

interface

uses
  DesignEditors, DesignIntf;

type
  TTntDBGridEditor = class(TComponentEditor)
  public
    procedure ExecuteVerb(Index: Integer); override;
    function GetVerb(Index: Integer): string{TNT-ALLOW string}; override;
    function GetVerbCount: Integer; override;
  end;

procedure Register;

implementation

uses
  SysUtils,
  TntVer, TntAbout, TntJvAbout,
  TntJvDBGridS, DsnDBCst, TntDesignEditors_Design;

type
  TAboutH = class(TAboutTntJv0)
  protected
    function DialogMess: string; override;
  end;

{--------------------------------------}
{-PROTECTED--------}

function TAboutH.DialogMess: string;
const
  MainMess = 'Adapted by'#13#10'%s'#13#10#13#10+
    'Used:'#13#10'%s'#13#10'and'#13#10'%s';
begin
  Result := Format (MainMess, [JMNMess, TntWareStr, JVCLStr]);
end;

{--------------------------------------}

procedure Register;
begin
  RegisterComponentEditor(TTntJvDBGridS, TTntDBGridEditor);
  RegisterPropertyEditor(TypeInfo(TAboutInfo), TTntJvDBGridS, 'About', TAboutH);
  RegisterPropertyEditor(TypeInfo(TAboutInfo), TTntDBGridEditor, 'About', TAboutH);
end;

{ TTntDBGridEditor }

function TTntDBGridEditor.GetVerbCount: Integer;
begin
  Result := 1;
end;

function TTntDBGridEditor.GetVerb(Index: Integer): string{TNT-ALLOW string};
begin
  Result := DsnDBCst.SDBGridColEditor;
end;

procedure TTntDBGridEditor.ExecuteVerb(Index: Integer);
begin
  EditPropertyWithDialog(Component, 'Columns', Designer);
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -