Layout lazarus / 10-Designer ---------------------------------------------------------------------- michalk · 2014-05-06 20:04 I am trying to put components on my form so that they are aligned in rows and columns. I thought about doing this by setting ChildSizing.Layout = cclLeftToRightThenTopToBottom , but the problem is that I have to set the number of components in a row. Form's width is fixed. I want to fit so many components in a row as possible, then switch to the next column and so on. I could calculate how many will actually fit in a row, but the code will get complicated, and I would have to do this every time one of components changes. Is there a faster way to achieve this? ---------------------------------------------------------------------- Blaazen · 2014-05-06 20:12 QuoteI thought about doing this by setting ChildSizing.Layout = cclLeftToRightThenTopToBottom , but the problem is that I have to set the number of components in a row. Form's width is fixed.So you need to calculate only ControlsPerLine. Or are the components different, i.e. there can be different number of components on each row? ---------------------------------------------------------------------- michalk · 2014-05-06 20:19 Components are the same,  but their captions change while the program runs. I also need Auto-size to be true, so the size also changes. That's way I need different number of components in each row ---------------------------------------------------------------------- michalk · 2014-05-06 20:24 And every component has different caption ---------------------------------------------------------------------- Blaazen · 2014-05-06 20:31 It seems that it is out of LCL sizing capabilities. You are on your own.