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?
Asked
Active
Viewed 98 times
0

James Hogle
- 3,010
- 3
- 22
- 46
-
what value you set in property TRectangle.Align? did you try with Align = Client? – Zam Jun 10 '15 at 14:55
-
Align = client did it! I didn't even think to look at the align property. – James Hogle Jun 10 '15 at 16:17