How to detect and “fix” DPI settings with Inno Setup?

后端 未结 3 970
粉色の甜心
粉色の甜心 2021-01-01 07:39

I created a setup with custom wizard pages and custom background images. The problem is with non-standard DPI systems.

When I run this setup the background images ar

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 08:40

    The "most correct" way is to have alternative images for small and larger fonts mode. The "slightly less correct" method is to pad the background so it shows that instead of shrinking. The "very wrong" method is to try and adjust the form layout/size to suit.

    You can detect the DPI size using the TGraphicsObject.PixelsPerInch property and load a different image.

提交回复
热议问题