-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmensaje.cpp
48 lines (41 loc) · 1.45 KB
/
mensaje.cpp
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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "mensaje.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFormMensaje *FormMensaje;
//---------------------------------------------------------------------------
__fastcall TFormMensaje::TFormMensaje(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
Mensaje::Mensaje(AnsiString texto)
{
FormMensaje->Label->Caption = texto;
FormMensaje->Caption = texto;
}
//---------------------------------------------------------------------------
void Mensaje::Mostrar()
{
FormMensaje->Show();
FormMensaje->Refresh();
}
//---------------------------------------------------------------------------
void Mensaje::Cerrar()
{
FormMensaje->Close();
}
//---------------------------------------------------------------------------
void __fastcall TFormMensaje::FormCreate(TObject *Sender)
{
Graphics::TBitmap *bmp = new Graphics::TBitmap;
ImageList->GetBitmap(0, bmp);
// ImageList->GetBitmap(ImageList->Tag, bmp);
Image->Canvas->Draw(0, 0, bmp);
delete bmp;
// ImageList->Tag = (ImageList->Tag + 1) % 6;
}
//---------------------------------------------------------------------------