home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
CALBROWS.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
2KB
|
46 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "calbrows.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
#pragma link "sampreg.obj"
TCalendarBrowser *CalendarBrowser;
//---------------------------------------------------------------------------
__fastcall TCalendarBrowser::TCalendarBrowser(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TCalendarBrowser::Calendar1Change(TObject *Sender)
{
Caption = FormatDateTime("mmmm d, yyyy", Calendar1->CalendarDate);
}
//---------------------------------------------------------------------
void __fastcall TCalendarBrowser::BitBtn1Click(TObject *Sender)
{
Calendar1->PrevYear();
}
//---------------------------------------------------------------------
void __fastcall TCalendarBrowser::BitBtn2Click(TObject *Sender)
{
Calendar1->PrevMonth();
}
//---------------------------------------------------------------------
void __fastcall TCalendarBrowser::BitBtn3Click(TObject *Sender)
{
Calendar1->NextMonth();
}
//---------------------------------------------------------------------
void __fastcall TCalendarBrowser::BitBtn4Click(TObject *Sender)
{
Calendar1->NextYear();
}
//---------------------------------------------------------------------