簡體   English   中英

Delphi XE4 FireMonkey TMemo透明? (IOS)

[英]Delphi XE4 FireMonkey TMemo Transparent? (iOS)

有沒有辦法讓Delphi / iOS / FireMonkey中的TMemo透明化?

在選擇+右鍵單擊備忘錄控件時,我看不到自己編輯樣式的任何方法...

嘗試刪除備忘錄應用樣式事件的背景。

procedure TForm1.Memo1ApplyStyleLookup(Sender: TObject);
var
  BckObject: TFmxObject;
begin
  BckObject := Memo1.FindStyleResource('background');
  if Assigned(BckObject) and (BckObject is TSubImage) then
  begin
    TSubImage(BckObject).Source := nil;
  end;
end;

您需要根據需要更改要顯示透明的控件的樣式。 不幸的是,Embarcadero沒有提供功能完備的示例,只提供了有關樣式定制FireMonkey應用程序主題的一些信息

暫無
暫無

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

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