形式:透明,控制形式:非透明? [英] form:Transparent, Control on form:non Transparent?

查看:61
本文介绍了形式:透明,控制形式:非透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不影响表单控件的情况下更改表单的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.

这篇关于形式:透明,控制形式:非透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆