This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
AboutForms.pas
63 lines (52 loc) · 1.57 KB
/
AboutForms.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//****************************************************************
//** Auto completion for custom PHP classes (ACCPC) **
//** **
//** Written by Stanislav Eckert, 2013-2015 **
//** Base plugin template by Damjan Zobo Cvetko **
//****************************************************************
unit AboutForms;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms,
Vcl.Dialogs, NppForms, Vcl.StdCtrls, shellapi;
type
TAboutForm = class(TNppForm)
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
procedure Label4Click(Sender: TObject);
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutForm: TAboutForm;
implementation
uses cccplugin;
{$R *.dfm}
procedure TAboutForm.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
inherited;
if Key = VK_ESCAPE then
begin
ModalResult := mrOk;
//Close();
end;
end;
procedure TAboutForm.Label4Click(Sender: TObject);
var
emailLabel: TLabel;
begin
inherited;
emailLabel := Sender as TLabel;
ShellExecute(Handle, 'open', PWideChar('mailto:' + emailLabel.Caption + '?subject=ACCPC%20plugin%20v' + sAppVersionDisplay), nil, nil, SW_SHOW);
end;
end.