形式:透明,控制形式:非透明?

编程入门 行业动态 更新时间:2024-10-28 20:30:23
本文介绍了形式:透明,控制形式:非透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在不影响表单控件的情况下更改表单的alphablend?

Delphi XE7

解决方案

此问题的一种解决方案是使用 Multi-Device Application (如果无法使用 VCL ).

如果您需要保留透明的 TForm ,只需更改属性 Transparency = True .

如果您需要保留一个半透明组件,则所有组件都具有 Opacity 属性,可以为该属性分配一个更透明的值,介于0和1之间,其中0距离该组件更近.>

例如,您可以将控件放在 TLayout 中,并根据需要更改其 Opacity ,而对其他组件没有影响,反之亦然

How can change alphablend of a form without affect on control in form?

Delphi XE7

解决方案

One solution to this problem is to use Multi-Device Application (if using VCL is not possible).

If you need to leave a transparent TForm just changing a property Transparency = True.

If you need to leave a semi-transparent component, all components have the Opacity property that can be assigned a more transparent value between 0 and 1, where 0 is closer to that component.

For example you could put the controls within a TLayout and change the Opacity of it as you see fit, and have no effect on the other components, or vice versa.

更多推荐

形式:透明,控制形式:非透明?

本文发布于:2023-11-06 13:07:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563777.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:透明   形式

发布评论

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

>www.elefans.com

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