I do not understand what is the purpose of PixelsPerInch
property... It seems it is useless. If Scaled
is checked, PixelsPerInch
cannot be modified. If Scaled
is unchecked and PixelsPerInch
is changed, the form size an font is scaled to a fixed value, regardless of the value you entered in PixelsPerInch
field. Of course, I checked the form size at runtime.
0
votes
1 Answers
0
votes
Scaled is True
In the dfm file the PixelsPerInch
property contains the screen DPI value used when the form was designed. This is necessary in order to be able to scale control position and size values to different DPI screens at runtime.
Scaled is False
The PixelsPerInch
property is ignored and control position and size values are used unscaled.
PixelsPerInch
it seems is no longer used in the new versions of Delphi. These new versions behave likePixelsPerInch
is fixed at 96 regardless of the value you enter... stackoverflow.com/questions/54742794/… – Marus Nebunu