home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / CALBROWS.CPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  2KB  |  46 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl.h>
  7. #pragma hdrstop
  8.  
  9. #include "calbrows.h"
  10. //---------------------------------------------------------------------------
  11. #pragma resource "*.dfm"
  12. #pragma link "sampreg.obj"
  13. TCalendarBrowser *CalendarBrowser;
  14. //---------------------------------------------------------------------------
  15. __fastcall TCalendarBrowser::TCalendarBrowser(TComponent* Owner)
  16.   : TForm(Owner)
  17. {
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TCalendarBrowser::Calendar1Change(TObject *Sender)
  21. {
  22.   Caption = FormatDateTime("mmmm d, yyyy", Calendar1->CalendarDate);
  23. }
  24. //---------------------------------------------------------------------
  25. void __fastcall TCalendarBrowser::BitBtn1Click(TObject *Sender)
  26. {
  27.     Calendar1->PrevYear();
  28. }
  29. //---------------------------------------------------------------------
  30. void __fastcall TCalendarBrowser::BitBtn2Click(TObject *Sender)
  31. {
  32.     Calendar1->PrevMonth();
  33. }
  34. //---------------------------------------------------------------------
  35. void __fastcall TCalendarBrowser::BitBtn3Click(TObject *Sender)
  36. {
  37.     Calendar1->NextMonth();
  38. }
  39. //---------------------------------------------------------------------
  40. void __fastcall TCalendarBrowser::BitBtn4Click(TObject *Sender)
  41. {
  42.     Calendar1->NextYear();
  43. }
  44. //---------------------------------------------------------------------
  45.  
  46.