添加定时器
void __fastcall TForm1::Timer1Timer(TObject *Sender) { StatusBar1-> Panels-> Items[1]-> Text=Now().FormatString( "yyyy-mm-dd hh:nn:ss "); }