Delphi按钮在Aero玻璃上显示白色边框

编程入门 行业动态 更新时间:2024-10-20 20:43:08
本文介绍了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玻璃上显示白色边框

本文发布于:2023-11-12 03:56:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580448.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:边框   按钮   白色   玻璃   Delphi

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!