fdreg.pas.svn-base

来自「TFormDesigner allows you move and resize」· SVN-BASE 代码 · 共 61 行

SVN-BASE
61
字号
(*  GREATIS FORM DESIGNER PRO                 *)
(*  unit version 3.50.006                     *)
(*  Copyright (C) 2001-2003 Greatis Software  *)
(*  http://www.greatis.com/formdes.htm        *)
(*  b-team@greatis.com                        *)

unit FDReg;

interface

{$IFDEF VER140}
{$DEFINE NEWDSGNINTF}
{$ENDIF}
{$IFDEF VER150}
{$DEFINE NEWDSGNINTF}
{$ENDIF}

uses
  {$IFDEF NEWDSGNINTF}
  DesignIntf, DesignEditors,
  {$ELSE}
  DsgnIntf,
  {$ENDIF}
  Classes, FDMain, FDEditor;

type
  TFormDesignerEditor = class(TComponentEditor)
    function GetVerbCount: Integer; override;
    function GetVerb(Index: Integer): string; override;
    procedure ExecuteVerb(Index: Integer); override;
  end;

procedure Register;

implementation

{$R FDREG.DCR}

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

function TFormDesignerEditor.GetVerb(Index: Integer): string;
begin
  Result:='Control &lists editor...';
end;

procedure TFormDesignerEditor.ExecuteVerb(Index: Integer);
begin
  if EditLists(Component as TCustomFormDesigner,ltLocked) then Designer.Modified;
end;

procedure Register;
begin
  RegisterComponents('Designers', [TFormDesigner]);
  RegisterComponentEditor(TCustomFormDesigner,TFormDesignerEditor);
end;

end.

⌨️ 快捷键说明

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