[Lazarus] Transparent Container/Panel in LCL?

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Sep 3 17:11:37 CEST 2012

The code works as expected. Translucency is not supported, only full
transparent or full opaque. But you can set irregular regions as 100%

The region that you set will be 100% opaque. Anything outside that
region will be 100% transparent.

If you set a region that includes the entire control, by definition
nothing will change. You need to include in your region what you want
to include. In this case the text+button. The down side is that
TRegion doesn't support text shapes, only geometric figures (ellipses,
rectangles and any combination of them using various operators).

You can work around this by using SetShape(bitmap) instead, but I
don't think it will work in all platforms.

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list