📄 tntdbgrids_design.pas
字号:
{*****************************************************************************}
{ }
{ Tnt Delphi Unicode Controls }
{ http://www.tntware.com/delphicontrols/unicode/ }
{ Version: 2.2.1 }
{ }
{ Copyright (c) 2002-2005, Troy Wolbrink (troy.wolbrink@tntware.com) }
{ }
{*****************************************************************************}
unit TntDBGrids_Design;
{$INCLUDE ..\TntCompilers.inc}
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
TntDBGrids, DsnDBCst, TntDesignEditors_Design;
procedure Register;
begin
RegisterComponentEditor(TTntDBGrid, TTntDBGridEditor);
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 + -