?? pickdate.cpp
字號:
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "pickdate.h"
//---------------------------------------------------------------------------
#pragma link "CCALENDR"
#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);
}
//---------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -