home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April / Chip_1997-04_cd.bin / prezent / cb / data.z / PICKDATE.H < prev    next >
C/C++ Source or Header  |  1997-01-16  |  1KB  |  40 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef pickdateH
  3. #define pickdateH
  4. //---------------------------------------------------------------------------
  5. #include <vcl\Classes.hpp>
  6. #include <vcl\Controls.hpp>
  7. #include <vcl\StdCtrls.hpp>
  8. #include <vcl\Forms.hpp>
  9. #include <vcl\ExtCtrls.hpp>
  10. #include <vcl\Buttons.hpp>
  11. #include <vcl\Grids.hpp>
  12. #include "..\..\controls\calendar\calendar.h"
  13. //---------------------------------------------------------------------------
  14. class TBrDateForm : public TForm
  15. {
  16. __published:    // IDE-managed Components
  17.     TButton *OkBtn;
  18.     TButton *CancelBtn;
  19.     TBevel *Bevel1;
  20.     TLabel *TitleLabel;
  21.     TSpeedButton *PrevMonthBtn;
  22.     TSpeedButton *NextMonthBtn;
  23.         TCalendar *Calendar1;
  24.     void __fastcall PrevMonthBtnClick(TObject *Sender);
  25.     void __fastcall NextMonthBtnClick(TObject *Sender);
  26.     void __fastcall Calendar1Change(TObject *Sender);
  27.         
  28.         
  29. private:    // User declarations
  30.     void SetDate(TDateTime Date);
  31.     TDateTime GetDate();
  32. public:        // User declarations
  33.     __property TDateTime Date={read=GetDate,write=SetDate};
  34.     virtual __fastcall TBrDateForm(TComponent* Owner);
  35. };
  36. //---------------------------------------------------------------------------
  37. extern TBrDateForm *BrDateForm;
  38. //---------------------------------------------------------------------------
  39. #endif
  40.