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

📄 about.pas

📁 Delphi利用MVC开发的典型例子
💻 PAS
字号:
unit About;

interface

uses Windows, Classes, Graphics, Forms, Controls, StdCtrls,
  Buttons, patterns, ExtCtrls, commandlist;


type
  TAboutBox = class(TForm)
    Panel1: TPanel;
    ProgramIcon: TImage;
    ProductName: TLabel;
    Version: TLabel;
    Copyright: TLabel;
    Button1: TButton;
    Label1: TLabel;
    Label2: TLabel;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

  TControllerAbout = class(TController)
  protected
    procedure DoCommand(Command: string; const args: string=''); override;
  public
  end;

var
  AboutBox: TAboutBox;

implementation

{$R *.DFM}

procedure TControllerAbout.DoCommand(Command: string; const args: string='');
begin
  if Command = CMD_SHOW_ABOUT then
    with TAboutBox.Create(nil) do
    begin
      showModal;
      free;
    end;
end;

initialization
  ControlCenter.RegController(TControllerAbout.Create);

end.

⌨️ 快捷键说明

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