property LoadingText: string; // default 'Loading...'
LoadingText 是當 AsyncRendering 為 True 時,檢視器疊加在部分轉譯頁面上的標題文字。檢視器會以目前繼承的字型測量該字串,將結果擴展成置中矩形,以 LoadingColor 填滿,然後在其上繪製文字。預設的 'Loading...' 讓使用者能辨識為暫時性狀態,且寬度足以清楚可見而不會主導整個頁面
此疊加層取決於文字,而非另一個獨立的可見性旗標。指定空字串('')即使非同步轉譯仍在作用中也會抑制疊加層 — 當主機應用程式想要顯示自己的載入 widget(動畫 GIF、強制回應進度對話方塊、獨立的狀態列面板),而不希望內建矩形搶走注意力時,這會很有用
於啟動時指定翻譯好的資源字串即可完成本地化;此屬性接受主機應用程式可產生的任何 string,包括中文、日文或阿拉伯文等多位元組字元
False// Localized loading caption
PdfView1.AsyncRendering := True;
PdfView1.LoadingText := SLoadingPdf; // resourcestring lookup
// Suppress the built-in indicator; use a TActivityIndicator instead
PdfView1.LoadingText := '';
ActivityIndicator1.Animate := True;
// Stage-specific message for slow first paint
PdfView1.LoadingText := 'Decoding first page...';
PdfView1.Active := True;