//--------------------------------------------------------------------------- #include #pragma hdrstop #include "Maintain.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TMaintainForm *MaintainForm; //--------------------------------------------------------------------------- __fastcall TMaintainForm::TMaintainForm(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TMaintainForm::CloseImageClick(TObject *Sender) { Close(); } //--------------------------------------------------------------------------- void __fastcall TMaintainForm::FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift) { if (Key == 27 || Key == 32 || Key == 13) { Close(); } } //---------------------------------------------------------------------------