Курсовая работа: Программа игры Кости
void __fastcall TForm2:: Edit3Change (TObject *Sender)
{
Button2->Enabled=false;
}
// ---------------------------------------------------------------------------
void __fastcall TForm2:: Edit2KeyPress (TObject *Sender, char &Key)
{
if ( (Key >= '0') && (Key <= '9') || (Key == 8)) {} // öèôðû
else
{
Key = 0; // íå öèôðà
}
}
// ---------------------------------------------------------------------------
void __fastcall TForm2:: Edit3KeyPress (TObject *Sender, char &Key)
{
if ( (Key >= '0') && (Key <= '9') || (Key == 8)) {} // öèôðû
else
{
Key = 0; // íå öèôðà
}
}
// ---------------------------------------------------------------------------
void __fastcall TForm2:: Image1MouseMove (TObject *Sender, TShiftState Shift,
int X, int Y)
{
Label5->Caption = TimeToStr (Now ());
}
// ---------------------------------------------------------------------------