home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / GrEdit1.exe / main.h < prev    next >
C/C++ Source or Header  |  1998-02-09  |  2KB  |  46 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef mainH
  7. #define mainH
  8. //---------------------------------------------------------------------------
  9. #include <Classes.hpp>
  10. #include <Controls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Forms.hpp>
  13. #include <ExtCtrls.hpp>
  14. // constants for custom cursors
  15. const int crFill  = 5;
  16. const int crPlus  = 6;
  17. const int crDraw  = 7;
  18. const int crErase = 8;
  19. //---------------------------------------------------------------------------
  20. class TDoodleForm : public TForm
  21. {
  22. __published:    // IDE-managed Components
  23.     TImage *Image1;
  24.     void __fastcall FormCreate(TObject *Sender);
  25.     void __fastcall Image1MouseDown(TObject *Sender, TMouseButton Button,
  26.     TShiftState Shift, int X, int Y);
  27.     void __fastcall Image1MouseMove(TObject *Sender, TShiftState Shift, int X,
  28.     int Y);
  29.     void __fastcall Image1MouseUp(TObject *Sender, TMouseButton Button,
  30.     TShiftState Shift, int X, int Y);
  31.     void __fastcall FormActivate(TObject *Sender);
  32.    void __fastcall FormShow(TObject *Sender);
  33.    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  34. private:    // User declarations
  35.     int InitialX;
  36.     int InitialY;
  37.     TImage *TmpImage;
  38.     void __fastcall DrawShape(int X, int Y);
  39. public:        // User declarations
  40.     virtual __fastcall TDoodleForm(TComponent* Owner);
  41. };
  42. //---------------------------------------------------------------------------
  43. extern TDoodleForm *DoodleForm;
  44. //---------------------------------------------------------------------------
  45. #endif
  46.