Resizing child controls. lazarus / 31-LCL ---------------------------------------------------------------------- taazz ยท 2012-10-17 17:22 I'm writing a custom component and I have run in to a problem. The idea behind that component is to be able to 1) auto size it self to the space the child components occupy. 2) auto size and move the child components based on properties the user sets. the 1st was easy overriding the ChangeBounds and making sure that the new values are set before calling the inherited method gave the results I wanted. the second one proved to be a pain in the neck. I can't find any method where I can react to size changes and change the child control's size and position safely. Which ever I use it triggers a infinite loop. The most obvious place I first landed was the resize method that gave a nasty exception thanks to the lcl developers, I have also tried the doautosize and doallautosize with the same results. this component is kind of a container on which later components will be build including generic ones where the child components might not be know at compile and get picked up at run time, so I would prefer a solution where I do not have to subclass the child components is mandatory. thank you for your time.