Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Transparent Panel
Wed, Jan 28 2015 8:53 AMPermanent Link

Uli Becker

Will the final TBasicPanel have a "transparent" property? Or is there
any way to create a transparent container for other controls?

Uli
Wed, Jan 28 2015 8:57 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> Will the final TBasicPanel have a "transparent" property? Or is there
> any way to create a transparent container for other controls?

A quick test shows that you can turn off the borders. It might be nice
to have a "hide all borders" but 4 borders gives more flexibility.
Wed, Jan 28 2015 9:01 AMPermanent Link

Uli Becker

Matthew,

> A quick test shows that you can turn off the borders. It might be nice
> to have a "hide all borders" but 4 borders gives more flexibility.

True, but that doesn't make the background transparent. Smile

Uli
Wed, Jan 28 2015 9:27 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> True, but that doesn't make the background transparent. Smile

I find my white panels on a white background look almost as good. 8-)


A quick play in the interface builder and then the form designer shows
that you can set the background to a solid color called
"clTransparent". Works exactly as you might wish it to.
Wed, Jan 28 2015 9:56 AMPermanent Link

Uli Becker

Matthew,

> A quick play in the interface builder and then the form designer shows
> that you can set the background to a solid color called
> "clTransparent". Works exactly as you might wish it to.

Brilliant - thanks.

Uli
Wed, Jan 28 2015 5:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Will the final TBasicPanel have a "transparent" property? Or is there any
way to create a transparent container for other controls? >>

There are a couple of different ways to do transparency, but the easiest way
is to just set the Background.Fill.Color to clTransparent.  The colors in
EWB 2 are RGBA with an alpha channel, so they support transparency.

The other way to do transparency is with the Opacity property, but that
controls the opacity of the current UI element and all child UI elements, so
that often isn't what you want.

Tim Young
Elevate Software
www.elevatesoft.com
Image