0

I am trying to add a TRectangle object to a Firemonkey control in the style designer to give the control a background color. I can add the TRectangle and size it manually, however then the style does not work if the control changes size in the designer. Is there a way I can make the TRectangle automatically take up the size of it's parent control?

James Hogle
  • 3,010
  • 3
  • 22
  • 46

1 Answers1

1

Please make sure that property "TRectangle.Align" is set to "Client"

Zam
  • 2,880
  • 1
  • 18
  • 33