📄 unit8.cpp
字号:
#include <vcl.h>
#pragma hdrstop
#include "Unit8.h"
#pragma package(smart_init)
#pragma link "CCALENDR"
#pragma resource "*.dfm"
TForm8 *Form8;
//---------------------------------------------------------------------------
__fastcall TForm8::TForm8(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void TForm8::(TDateTime Date)
{
Calendar1->CalendarDate=Date;
}
//-----------------------------------------------------------------------------
TDateTime TForm8::GetDate()
{
TDateTime Date=Calendar1->CalendarDate;
return Date;
}
//------------------------------------------------------------------------------
void __fastcall TForm8::SpeedButton1Click(TObject *Sender)
{
Cakebdar1->PrevMonth();
}
//---------------------------------------------------------------------------
void __fastcall TForm8::SpeedButton2Click(TObject *Sender)
{
Cakebdar1->NextMonth();
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -