//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include #include //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TImage *Image1; TImage *Image2; TImage *Image3; TImage *Image4; TImage *Image5; TImage *Image6; TButton *ButtonShrink; TButton *ButtonGrow; TButton *ButtonColor; TButton *ButtonReset; void __fastcall FormCreate(TObject *Sender); void __fastcall ButtonShrinkClick(TObject *Sender); void __fastcall ButtonGrowClick(TObject *Sender); void __fastcall ButtonColorClick(TObject *Sender); void __fastcall ButtonResetClick(TObject *Sender); private: // User declarations // We have to add three declarations to create events for the images... void __fastcall ImageMouseDown(TObject *Sender, TMouseButton, TShiftState, int, int); void __fastcall ImageMouseMove(TObject *Sender, TShiftState, int, int); void __fastcall ImageMouseUp(TObject *Sender, TMouseButton, TShiftState, int, int); public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif