-
Notifications
You must be signed in to change notification settings - Fork 0
/
USplash.pas
60 lines (52 loc) · 1.4 KB
/
USplash.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
unit USplash;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, ComCtrls, pngimage;
type
TfrmSplash = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
P: TProgressBar;
lblProg: TLabel;
Image1: TImage;
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmSplash: TfrmSplash;
implementation
uses UDados;
{$R *.dfm}
procedure TfrmSplash.FormActivate(Sender: TObject);
begin
Repaint;
lblProg.Caption := 'Conectando ao Banco de Dados...';
p.Position := p.Position + 10;
application.ProcessMessages;
sleep(300);
lblProg.Caption := 'Verificando Índices do Banco de Dados...';
p.Position := p.Position + 20;
application.ProcessMessages;
sleep(500);
lblProg.Caption := 'Abrindo Tabelas Necessários do Banco de Dados...';
p.Position := p.Position + 10;
application.ProcessMessages;
sleep(400);
lblProg.Caption := 'Verificando Índices do Banco de Dados...';
p.Position := p.Position + 15;
application.ProcessMessages;
sleep(300);
lblProg.Caption := 'Carregando Parâmentros do Sistema...';
p.Position := p.Position + 30;
application.ProcessMessages;
sleep(400);
lblProg.Caption := 'Abrindo o Sistema...';
p.Position := p.Position + 30;
application.ProcessMessages;
sleep(300);
end;
end.