-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuNotificacao.pas
51 lines (42 loc) · 939 Bytes
/
uNotificacao.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
unit uNotificacao;
interface
uses
System.Classes,
Vcl.Controls,
Vcl.ExtCtrls,
Vcl.Forms,
Vcl.Imaging.pngimage,
Vcl.StdCtrls;
type
TfrmNotificacao = class(TForm)
lblTitulo: TLabel;
lblMensagem: TLabel;
imgNotificacao: TImage;
tmrDesaparecer: TTimer;
procedure FormCreate(Sender: TObject);
procedure tmrDesaparecerTimer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmNotificacao: TfrmNotificacao;
implementation
{$R *.dfm}
procedure TfrmNotificacao.FormCreate(Sender: TObject);
begin
Left := Screen.Width - Width;
Top := 200;
end;
procedure TfrmNotificacao.tmrDesaparecerTimer(Sender: TObject);
begin
AlphaBlendValue := AlphaBlendValue - 5;
Application.ProcessMessages;
if AlphaBlendValue < 5 then
begin
tmrDesaparecer.Enabled := False;
Hide;
end;
end;
end.