簡體   English   中英

在 delphi firemonkey 我如何使用 TLabel 來顯示日期和時間

[英]In delphi firemonkey how can i use a TLabel to display date and time

在 delphi 中,我嘗試使用 Ttimer 組件在 TLabel 上顯示時間和日期,但我無法使此代碼正常工作

begin
    clock.Caption := TimeToStr(Time)
end;

時鍾是 TLabel 名稱

FMX 標簽沒有標題屬性。 相反,它們具有 Text 屬性。

嘗試

begin
    clock.Text := TimeToStr(Time)
end;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM