FMX controls do not have a color property. What is the FMX equivalent to VCL.TColor?
FMX.Panel1.Color := clBlack
Quoting myself: in a nutshell, use a TRectangle
instead of a TPanel
(a panel's style is probably composed of a TRectangle
anyway):
TRectangle
to the form.Stroke.Color
to Gray
.Fill.Color
to whatever you want.MyRectangle.Fill.Color := TAlphaColors.Blue;
Annoyingly, at designtime, a TRectangle
is made to pretend it can’t parent other controls (in reality, any FMX control can parent any other). However, you can use the Structure pane top left of the IDE to reparent controls to it as you wish.