![]() |
FMX TEDIT Hintergrundfarbe wechseln
Ich habe mal eine echte Beginner Frage (XE6):
FMX TEDIT, wie wechselt man denn dort die Hintergrundfarbe ? .Color gibt es ja nicht. Auch ein anderes Beispiel was ich gefunden habe:
Delphi-Quellcode:
geht nicht da T <> TRectangle ist :pale:
procedure SetEditControlColor(AEditControl: TCustomEdit; AColor: TAlphaColor);
var T: TFmxObject; begin if AEditControl = nil then Exit; T := AEditControl.FindStyleResource('background'); if (T <> nil) and (T is TRectangle) then if TRectangle(T).Fill <> nil then TRectangle(T).Fill.Color := AColor; AEditControl.Repaint; end; T ist hier ein TActiveStyleObject ??? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz