-
Notifications
You must be signed in to change notification settings - Fork 0
/
Events.pas
44 lines (35 loc) · 873 Bytes
/
Events.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
unit Events;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.DBCtrls, Vcl.ComCtrls,
Vcl.Mask, Vcl.ExtCtrls, DBDateTimePicker;
type
TFormEvents = class(TForm)
GridPanel1: TGridPanel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
DBEdit2: TDBEdit;
DBCheckBox1: TDBCheckBox;
DBMemo1: TDBMemo;
DBDateTimePicker1: TDBDateTimePicker;
DBNavigator1: TDBNavigator;
procedure FormKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormEvents: TFormEvents;
implementation
{$R *.dfm}
uses DM;
procedure TFormEvents.FormKeyPress(Sender: TObject; var Key: Char);
begin
if (Key = #27) then
Close;
end;
end.