[英]How PixelsPerInch works in Delphi 10.3 Rio?
I do not understand what is the purpose of PixelsPerInch
property... It seems it is useless.我不明白PixelsPerInch
属性的目的是PixelsPerInch
......似乎没用。 If Scaled
is checked, PixelsPerInch
cannot be modified.如果选中Scaled
,则无法修改PixelsPerInch
。 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.如果未选中Scaled
且PixelsPerInch
已更改,则无论您在PixelsPerInch
字段中输入的值如何,字体的表单大小都会缩放为固定值。 Of course, I checked the form size at runtime.当然,我在运行时检查了表单大小。
Scaled is True缩放为真
In the dfm file the PixelsPerInch
property contains the screen DPI value used when the form was designed.在 dfm 文件中, PixelsPerInch
属性包含设计表单时使用的屏幕 DPI 值。 This is necessary in order to be able to scale control position and size values to different DPI screens at runtime.这是必要的,以便能够在运行时将控制位置和大小值缩放到不同的 DPI 屏幕。
Scaled is False缩放是错误的
The PixelsPerInch
property is ignored and control position and size values are used unscaled. PixelsPerInch
属性被忽略,控件位置和大小值不按比例使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.