-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAcessarProjetoAjuda.pas
50 lines (40 loc) · 1.1 KB
/
AcessarProjetoAjuda.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
unit AcessarProjetoAjuda;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;
type
TFormAcessarProjetoAjuda = class(TForm)
Memo: TMemo;
btnVoltar: TBitBtn;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure btnVoltarClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormAcessarProjetoAjuda: TFormAcessarProjetoAjuda;
implementation
{$R *.dfm}
procedure TFormAcessarProjetoAjuda.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
//Fechar o form e liberar memória
FormAcessarProjetoAjuda.Release;
FormAcessarProjetoAjuda:=Nil;
end;
procedure TFormAcessarProjetoAjuda.FormCreate(Sender: TObject);
begin
//Centraliza form
Left := (GetSystemMetrics(SM_CXSCREEN) - Width) div 2;
Top := (GetSystemMetrics(SM_CYSCREEN) - Height) div 2;
end;
procedure TFormAcessarProjetoAjuda.btnVoltarClick(Sender: TObject);
begin
//Fechar o formAcessarAjuda
FormAcessarProjetoAjuda.Close;
end;
end.