ccommand.pas

来自「Delphi深度探索,Delphi深度探索(第二版)」· PAS 代码 · 共 44 行

PAS
44
字号
unit CCommand;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ActnList, Menus;

type
  TForm1 = class(TForm)
    mm1: TMainMenu;
    miN1: TMenuItem;
    actlst1: TActionList;
    ac1: TAction;
    procedure ac1Execute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses CFormCommand;

{$R *.dfm}

procedure TForm1.ac1Execute(Sender: TObject);
var
  AForm:TFormCommand;
begin
  AForm:=TFormCommand.Create(nil);
  try
    AForm.ShowModal;
  finally
    AForm.Free;
  end;
end;

end.

⌨️ 快捷键说明

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