about.pas.svn-base

来自「支持自定义语法高亮显示的编辑器控件」· SVN-BASE 代码 · 共 54 行

SVN-BASE
54
字号
unit about;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, ExtCtrls, EasyUtils;

type
  TfrmCompanyInfo = class(TForm)
    Image1: TImage;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Button1: TButton;
    procedure Label2Click(Sender: TObject);
    procedure Label4Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmCompanyInfo: TfrmCompanyInfo;

implementation

{$R *.DFM}

{--------------------------------------------}

procedure JumpToURL(const s: string);
begin
  ShellExecute(0, nil, PChar(s), nil, nil, SW_SHOW);
end;

{--------------------------------------------}

procedure TfrmCompanyInfo.Label2Click(Sender: TObject);
begin
  JumpToURL(Label2.Caption);
end;

{--------------------------------------------}

procedure TfrmCompanyInfo.Label4Click(Sender: TObject);
begin
  JumpToURL('mailto:'+Label4.Caption);
end;

end.

⌨️ 快捷键说明

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