How could I align/resize 5 rectangles on maximize in Firemonkey?

  

So here’s the deal… I have a normal (not maximized – custom size) form and 5 columns and 2 rows of tiles (TRectangle) on it (FIG. 1). My question is how could I use Anchors, or Layers or anything to properly align/resize the tiles on maximize (FIG. 3). Meaning if by my logic I set all Align properties (L/T/R/B) to True, the tiles should just get slightly bigger and keep the same margins between them (FIG. 3), but actually, the don’t, they just overlap each other when maximized, like in FIG. 2. My question is how could I set the tiles so they are just slightly bigger and keep the same margins between them like when the form is normal (my custom size) when the window is maximized – basically have them fill the form nicely, not overlapping. Thanks!
PS: Sorry for my lame paint drawing 🙂

Comments are closed.