forked from glauberlima/TabelasProtheus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUnit2.pas
48 lines (38 loc) · 939 Bytes
/
Unit2.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
unit Unit2;
interface
uses
Forms, StdCtrls, Controls, Graphics, ExtCtrls, Classes, ShellAPI;
type
TfrmSobre = class(TForm)
lbNome: TLabel;
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
Image1: TImage;
Label3: TLabel;
Memo1: TMemo;
procedure Label3Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmSobre: TfrmSobre;
implementation
{$R *.dfm}
procedure TfrmSobre.Label3Click(Sender: TObject);
begin
ShellExecute(0,'open', PChar('mailto:[email protected]?Subject=[' + Application.Title + ']'), '', '', 0);
end;
procedure TfrmSobre.FormCreate(Sender: TObject);
begin
lbNome.Caption := Application.Title;
end;
procedure TfrmSobre.FormKeyPress(Sender: TObject; var Key: Char);
begin
if key = #27 then Close;
end;
end.