如何检测和“修复"程序.使用Inno Setup进行DPI设置? [英] How to detect and "fix" DPI settings with Inno Setup?

查看:198
本文介绍了如何检测和“修复"程序.使用Inno Setup进行DPI设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用自定义向导页面和自定义背景图片创建了一个设置. 问题出在非标准DPI系统上.

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

当我运行此设置时,背景图像无法正确显示. 如何检测DPI大小并为向导页面使用自定义设置?

When I run this setup the background images are not properly showing. How can I detect the DPI size and use custom settings for wizard pages?

推荐答案

最正确"的方法是为较小和较大的字体模式提供替代图像. 稍微不太正确"的方法是填充背景,以便显示出来而不是缩小. 非常错误"的方法是尝试调整表单的布局/大小以使其适合.

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.

您可以使用TGraphicsObject.PixelsPerInch属性检测DPI大小并加载其他图像.

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

这篇关于如何检测和“修复"程序.使用Inno Setup进行DPI设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆