home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
PICKDATE.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
2KB
|
45 lines
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "pickdate.h"
//---------------------------------------------------------------------------
#pragma link "sampreg"
#pragma resource "*.dfm"
TBrDateForm *BrDateForm;
//---------------------------------------------------------------------------
__fastcall TBrDateForm::TBrDateForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void TBrDateForm::SetDate(TDateTime Date)
{
Calendar1->CalendarDate = Date;
}
//---------------------------------------------------------------------------
TDateTime TBrDateForm::GetDate()
{
TDateTime Date = Calendar1->CalendarDate;
return Date;
}//---------------------------------------------------------------------------
void __fastcall TBrDateForm::PrevMonthBtnClick(TObject *Sender)
{
Calendar1->PrevMonth();
}
//---------------------------------------------------------------------------
void __fastcall TBrDateForm::NextMonthBtnClick(TObject *Sender)
{
Calendar1->NextMonth();
}
//---------------------------------------------------------------------------
void __fastcall TBrDateForm::Calendar1Change(TObject *Sender)
{
TitleLabel->Caption = FormatDateTime("MMMM, YYYY", Calendar1->CalendarDate);
}
//---------------------------------------------------------------------------