I have a combo box and a button on my form. When the application strts, Delphi scales everything on the form to the new monitor dpi. After this, I want to make the height of the button the same size as the height of the combo box, because they are not scaled right.
I tried to do this in form OnCreate
, OnActivate
, OnShow
, but everytime I read the height of the combo box I get the unscaled value... And if I set this to button height it will remain smaller.
I even override the ChangeScale
method of the form, but it seems that is not called at startup...
I don't know what else I could do...