iosdelphifiremonkeydelphi-xe4tmemo

Delphi XE4 FireMonkey TMemo Transparent? (iOS)


Is there any way to make the TMemo transparent in Delphi/iOS/FireMonkey?

I don't see any way to edit styles myself when selecting + right-clicking the memo control...


Solution

  • Try removing memo's background on applying style event.

    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;