-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReport.pas
52 lines (41 loc) · 1.07 KB
/
Report.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
unit Report;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Objects, FMX.Edit, ShellApi,
System.ImageList, FMX.ImgList, FMX.Memo.Types, FMX.ScrollBox, FMX.Memo;
type
TForm5 = class(TForm)
Image2: TImage;
Label2: TLabel;
Button1: TButton;
Edit1: TEdit;
Label1: TLabel;
Label3: TLabel;
Edit2: TEdit;
Button2: TButton;
ImageList1: TImageList;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form5: TForm5;
implementation
{$R *.fmx}
uses PrimaFereastra;
procedure TForm5.Button1Click(Sender: TObject);
begin
ShellExecute(0, 'OPEN', PWideChar('mailto:' + Edit1.Text + '?subject=' + Edit2.Text + '&body=' + Memo1.Text), nil, nil, 0);
end;
procedure TForm5.Button2Click(Sender: TObject);
begin
Form2.Show;
Form5.Hide;
end;
end.