How PixelsPerInch works in Delphi 10.3 Rio?

£可爱£侵袭症+ 提交于 2021-02-11 16:51:45

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/59778641/how-pixelsperinch-works-in-delphi-10-3-rio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!