-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrameNum.cpp
45 lines (38 loc) · 1.2 KB
/
FrameNum.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
//---------------------------------------------------------------------------
#include <fmx.h>
#pragma hdrstop
#include "FrameNum.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.fmx"
TfrmeNum *frmeNum;
//---------------------------------------------------------------------------
__fastcall TfrmeNum::TfrmeNum(TComponent* Owner)
: TFrame(Owner)
{
}
//---------------------------------------------------------------------------
void TfrmeNum::Fail()
{
//enabled_ = false;
state_ = State::Fail;
ColorAnimation1->Enabled = false;
Rectangle1->Fill->Color = claRed;
}
//---------------------------------------------------------------------------
void TfrmeNum::Ok()
{
//enabled_ = false;
state_ = State::Ok;
ColorAnimation1->Enabled = false;
Rectangle1->Fill->Color = claGreen;
}
//---------------------------------------------------------------------------
void __fastcall TfrmeNum::Click(TObject *Sender)
{
//if ( enabled_ && OnDblClick ) {
if ( state_ == State::Enabled && OnDblClick ) {
OnDblClick( this );
}
}
//---------------------------------------------------------------------------