//--------------------------------------------------------------------------- #ifndef Image1H #define Image1H //--------------------------------------------------------------------------- #include #include #include #include #include #include //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TImage *Image1; TImage *Image2; TButton *Button1; TImage *Image3; TButton *Button2; void __fastcall Button1Click(TObject *Sender); void __fastcall Image3MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall Image3MouseMove(TObject *Sender, TShiftState Shift, int X, int Y); void __fastcall Image3MouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall FormCreate(TObject *Sender); void __fastcall Button3Click(TObject *Sender); private: // User declarations bool push; int posX; int posY; TPoint FirstPoint; TPoint LastPoint; public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif