Andry 0 Posted November 6, 2018 Hi all, I have to get the exact ClientWidth and ClientHeigth of a VCL control (TPannel) docked in a form to position some controls within a loop within a method. The form is fixed at wsMaximized at designtime but when I run the application, I cannot have the ClientWidth and ClientHeigth of the control, instead, I have the ClientWidth and ClientHeigth of the control like as designtime even if the form is maximized in runntime. So when is the best moment to get theses properties to do execute the method. Regards Andry Share this post Link to post
Markus Kinzler 174 Posted November 6, 2018 I would evaluate the CanResize event. Share this post Link to post
FredS 138 Posted November 6, 2018 18 minutes ago, Andry said: the ClientWidth and ClientHeigth of the control like as designtime You can override the form's Loaded method. At that point the values of the control will be those stored in the DFM. Share this post Link to post