gpt4 book ai didi

delphi - TWinControl 的不透明度?

转载 作者:行者123 更新时间:2023-12-03 18:08:53 25 4
gpt4 key购买 nike

如何改 rebase 于 TWinControl 的控件的不透明度?为什么他们不将此功能添加到 TControl/TWinControl 级别(为什么只添加到 TForm)?

最佳答案

控制窗口的不透明度由称为分层窗口 的功能提供。你可以read more about the feature on MSDN .该功能仅适用于顶级 窗口。据我所知,Desktop Window Manager (Vista 的“玻璃”效果)也仅适用于顶层窗口。

可用于子窗口的替代方法是使用 window regions将窗口的某些区域标记为完全透明,或使用 bitmap alpha blending自己绘制整个控件。

关于delphi - TWinControl 的不透明度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1636132/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com