📄 unit6.~cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit6.h"
#include "Unit11.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tfrm_tshtj *frm_tshtj;
int t=1;
//---------------------------------------------------------------------------
__fastcall Tfrm_tshtj::Tfrm_tshtj(TComponent* Owner)
: TForm(Owner)
{
Height=472;
Width=714;
}
//---------------------------------------------------------------------------
void __fastcall Tfrm_tshtj::FormClose(TObject *Sender,
TCloseAction &Action)
{
Action=caFree;
}
//---------------------------------------------------------------------------
void __fastcall Tfrm_tshtj::FormShow(TObject *Sender)
{
Label1->Caption=DateTimeToStr(TDateTime::CurrentDate());
AnsiString sql;
sql="select * from 图书信息";
DM->tshQuery->Close();
DM->tshQuery->SQL->Clear();
DM->tshQuery->SQL->Add(sql);
DM->tshQuery->ExecSQL();
DM->tshQuery->Open();
}
//---------------------------------------------------------------------------
void __fastcall Tfrm_tshtj::Timer1Timer(TObject *Sender)
{
t++;
t%=40;
if(t<20)
Label1->Left+=3;
else
Label1->Left-=3;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -