aboutunit.pas

来自「人事管理源码 Delphi+ADO+Acce」· PAS 代码 · 共 50 行

PAS
50
字号
unit Aboutunit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, StdCtrls, ExtCtrls,shellapi;

type
  TAboutForm = class(TForm)
    Image1: TImage;
    Label1: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    EmailLabel: TLabel;
    SpeedButton1: TSpeedButton;
    procedure SpeedButton1Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure EmailLabelClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  AboutForm: TAboutForm;

implementation

{$R *.dfm}

procedure TAboutForm.SpeedButton1Click(Sender: TObject);
begin
  close;
end;

procedure TAboutForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  action := cafree;
  aboutform := nil;
end;

procedure TAboutForm.EmailLabelClick(Sender: TObject);
begin
  ShellExecute( Application.Handle, Nil,PChar( 'mailto:'+EmailLabel.Caption), Nil, Nil, SW_SHOWNOACTIVATE );
end;

end.

⌨️ 快捷键说明

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