如何在Windows 10上更改功能区的颜色

问题描述 投票:3回答:1

我们正在使用RibbonFramework,它只是Windows Ribbon框架的Delphi包装器。一切正常,直到我们开始升级到Windows 10为止,在Windows 10上颜色设置停止工作。

我们使用BackgroundColor属性,该属性最终将UI_PKEY_GlobalBackgroundColor设置为更改背景色。不幸的是,它只能部分起作用,它永远不会设置正确的颜色,而是带有淡淡的灰色,并带有所选颜色的提示。在这种情况下,设置的是绿色而不是紫色,这只是一个小细节。

我无法找到问题所在,可能是Windows 10颜色设置不起作用或不再受支持,或者我做错了。

下面您将看到同一应用程序TextPad demo在不同版本的Windows上的外观,除了Windows 10以外的所有其他设备都正常运行。我在具有不同设置的数十台不同计算机上进行了测试,结果始终相同。

Windows 7(Windows Server 2008)

enter image description here

Windows 8(Windows Server 2012)

enter image description here

Windows 10-内部版本17763

enter image description here

将所有可能的颜色设置为纯红色

enter image description here

windows delphi winapi ribbon delphi-10.2-tokyo
1个回答
0
投票

这是Windows 10 v.1809(2018年10月更新)中出现的系统错误。到目前为止,直到他们自己修复它为止,似乎与它无关,也没有解决的方法。

已经在他们的Gtihub for MicrosoftDocsWindows Desktop Ribbon Developement论坛上进行了报道。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.