-
Notifications
You must be signed in to change notification settings - Fork 0
/
LicenseUnit.pas
41 lines (32 loc) · 865 Bytes
/
LicenseUnit.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
// Copyright 2019 Navid Madani
// Distributed under GNU General Public License Version 3.0, June 29, 2007
unit LicenseUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TfrmLicense = class(TForm)
memLicense: TMemo;
btnOK: TButton;
procedure btnOKClick(Sender: TObject);
procedure memLicenseKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmLicense: TfrmLicense;
implementation
{$R *.dfm}
procedure TfrmLicense.btnOKClick(Sender: TObject);
begin
Close;
end;
procedure TfrmLicense.memLicenseKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if Key = VK_RETURN then
Close;
end;
end.