-
Notifications
You must be signed in to change notification settings - Fork 0
/
UTelaInicial.pas
48 lines (37 loc) · 1001 Bytes
/
UTelaInicial.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 UTelaInicial;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;
type
TfrmTelaInicial = class(TForm)
logo: TImage;
procedure FormCreate(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmTelaInicial: TfrmTelaInicial;
implementation
uses UFuncoes, UBD;
{$R *.dfm}
procedure TfrmTelaInicial.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Release;
end;
procedure TfrmTelaInicial.FormCreate(Sender: TObject);
begin
if FileExists(ExtractFilePath(Application.ExeName) + 'Fundo Inicial.bmp') then begin
logo.Picture.LoadFromFile(ExtractFilePath(Application.ExeName) + 'Fundo Inicial.bmp');
logo.Stretch := true;
end;
end;
procedure TfrmTelaInicial.FormResize(Sender: TObject);
begin
AbreForm(TfrmBD, frmBD);
end;
end.