-
Notifications
You must be signed in to change notification settings - Fork 0
/
UMenuPrincipal.pas
69 lines (56 loc) · 1.47 KB
/
UMenuPrincipal.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
unit UMenuPrincipal;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
UPadrao, FMX.Controls.Presentation;
type
TMenuPrincipal = class(TPadrao)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MenuPrincipal: TMenuPrincipal;
implementation
{$R *.fmx}
uses UTela1, UTela2;
procedure TMenuPrincipal.Button1Click(Sender: TObject);
begin
inherited;
CriarTela(Tela1, TTela1);
Tela1.Show;
end;
procedure TMenuPrincipal.Button2Click(Sender: TObject);
begin
inherited;
CriarTela(Tela2, TTela2);
Tela2.Show;
end;
procedure TMenuPrincipal.Button3Click(Sender: TObject);
begin
inherited;
if Assigned(Tela1) then
ShowMessage('Tela 1 está na memória !!!')
Else
ShowMessage('Tela 1 não está mais na memória !!!');
end;
procedure TMenuPrincipal.Button4Click(Sender: TObject);
begin
inherited;
if Assigned(Tela2) then
ShowMessage('Tela 2 está na memória !!!')
Else
ShowMessage('Tela 2 não está mais na memória !!!');
end;
end.