本文介绍了Delphi按钮在Aero玻璃上显示白色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在Delphi 2010中使用Aero来寻找美观的设计。人们看到的一个显而易见的用途是玻璃框架被扩展为在屏幕底部包括OK / Cancel按钮。我注意到虽然在Delphi 2010中看起来不太正确-每个按钮周围都有白色边框。

I have been trying to find a good-looking design using Aero in Delphi 2010. One of the obvious uses one sees, is where the glass frame is extended to include the OK/Cancel buttons at the bottom of the screen. I notice though that this doesn't look quite right in Delphi 2010 - there is a white border all around each button.

此图显示了问题:前3个按钮来自我的应用程序,底部两个来自Paint.NET的图层属性对话框。

This image shows the problem: the top 3 buttons are from my app, the bottom two were taken from Paint.NET's Layer Properties dialog.


我尝试了DoubleBuffered的各种组合以及首先将控件放在其他控件上的几种组合,但是问题仍然存在。有想法吗?

I tried various combinations of DoubleBuffered and a few combinations of placing the controls on other controls first, but the problem remains. Any ideas?

推荐答案

如果没有人有一个好的解决方案,请使用 TBitBtn DoubleBuffered = false

If no one has a clean solution, as a workaround use TBitBtn with DoubleBuffered = false.

这篇关于Delphi按钮在Aero玻璃上显示白色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 09:18