-
Notifications
You must be signed in to change notification settings - Fork 7
/
MolHero.FormAdd.pas
executable file
·53 lines (42 loc) · 1.07 KB
/
MolHero.FormAdd.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
unit MolHero.FormAdd;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Controls.Presentation, FMX.Edit;
type
TFormAdd = class(TForm)
edtURL: TEdit;
ToolBar1: TToolBar;
spdbtnBack: TSpeedButton;
lblEnterURL: TLabel;
lblTitle: TLabel;
btnAddMolecule: TButton;
procedure spdbtnBackClick(Sender: TObject);
procedure btnAddMoleculeClick(Sender: TObject);
private
procedure DoAddMolecule;
public
{ Public declarations }
end;
var
FormAdd: TFormAdd;
implementation
{$R *.fmx}
uses MolHero.FormMain;
procedure TFormAdd.btnAddMoleculeClick(Sender: TObject);
begin
DoAddMolecule;
Close;
FormMain.Show;
end;
procedure TFormAdd.DoAddMolecule;
begin
ShowMessage('Importing from the URL will be next big feature of the next release of MOLECULE HERO app.');
end;
procedure TFormAdd.spdbtnBackClick(Sender: TObject);
begin
Close;
FormMain.Show;
end;
end.