Would anyone know the reason why TControl's Scale property has been demoted to protected (at least since XE2)?

Would anyone know the reason why TControl's Scale property has been demoted to protected (at least since XE2)?

Had quite a few functions that relied on being able to change a TControl's scale, and are now forced to use an ugly typecast hack.

Comments

  1. I suppose this is due to the support of high DPI in VCL. Maybe you can change Form.PixelsPerInch instead (it is published)?
    Funny that in the sources there are ScaleFor*PPI*, FCurrent*PPI* and ScaleControlsFor*Dpi*, GetParentCurrent*Dpi*. Yes, I know that DPI and PPI is (almost) the same.

    ReplyDelete
  2. T n T, really "DPI" is for printers, the ones that actually use dots. "PPI" is for screen-type devices the have real pixels. A photographer makes calibrated prints for sale would go "aaaah!". Dots <> pixels :)

    ReplyDelete

Post a Comment