使用VCL风格时,程序图标在标题栏中看起来好奇 [英] Program icon looks curious in the title bar when using a VCL style

查看:151
本文介绍了使用VCL风格时,程序图标在标题栏中看起来好奇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7 Pro 64位系统上使用Delphi XE7。
如果我选择Charcoal Dark SlateVCL风格,则从32x32程序图标缩小的16x16像素标题栏图标看起来不像预期的那样。

Using Delphi XE7 on a Windows 7 Pro 64-bit system. If I choose 'Charcoal Dark Slate' VCL style, the 16x16 pixel titel bar icon down-sized from the 32x32 program icon looks not like expected.

它应该像下面的小图标。如果我以16×16像素格式加载程序图标,它在Titel栏中看起来不错,但是由于16到32像素的放大,在任务栏中是丑陋的。

It should look like the small icon below. If I load the program icon in 16x16 pixel format, it looks good in the titel bar, but ugly in the task bar because of the 16 to 32 pixel enlargement.

推荐答案

这是VCL样式的已知问题 http:/ /qc.embarcadero.com/wc/qcmain.aspx?d=106224

This is known issue with VCL Styles http://qc.embarcadero.com/wc/qcmain.aspx?d=106224

另请参阅Embarcadero最新QC站点中的此问题: https://quality.embarcadero.com/browse/RSP-11572 - 从最初开始已经3年了报道,仍然没有固定。如果有足够的人投票支持该问题,也许会引起注意。

Also see this issue in Embarcadero's newer QC site: https://quality.embarcadero.com/browse/RSP-11572 --- it's been 3 years since initially reported, and still not fixed. If enough people vote for that issue, maybe it will get some attention.

作为解决方法,您可以将正确的16x16图标加载到表单的图标属性。

As workaround you can load proper 16x16 icon into form's Icon property.

为了使其工作,您还必须在 Application.MainFormOnTaskBar:= false; 中设置 .dpr 文件

In order for that to work you have to also set Application.MainFormOnTaskBar := false; in your .dpr file

然而,这还有一些其他不良影响,因为它会禁用Windows Vista或Windows 7 Aero效果,包括live任务栏缩略图,动态Windows,Windows Flip和Windows Flip 3D。请参阅: MainFormOnTaskBar

However that has some other undesirable effects because it will disable Windows Vista or Windows 7 Aero effects, including live taskbar thumbnails, Dynamic Windows, Windows Flip, and Windows Flip 3D. See: MainFormOnTaskBar

在任何情况下,不要更改您的应用程序图标大小,因为它是最糟糕的解决方案。

In any case do not change your application icon size because it is the worst solution.

这篇关于使用VCL风格时,程序图标在标题栏中看起来好奇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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