<p style="padding:0 0 0 0; margin:0 0 0 0;">It works for me but only in Qt. You have to set ControlStyle := ControlStyle - [csOpaque]; in constructor. csParentBackground seems to have no effect on it.</p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">In GTK2 I cannot overlay components anyway. </p>

<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">Vojtěch </p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: "Fabio Luis Girardi" <fluisgirardi@gmail.com><br />
> Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org><br />
> Datum: 24.07.2013 21:30<br />
> Předmět: [Lazarus] Custom control<br />
></p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi!!<br />
<br />
Somebody knows how make a custom control with background transparency<br />
on GTK2/QT?<br />
<br />
My idea is that a control behind of this custom control must be<br />
displayed (if this control is behind of a non painted area)<br />
<br />
<br />
Problem example attached.<br />
<br />
Ideas?<br />
<br />
-- <br />
The best regards,<br />
<br />
Fabio Luis Girardi<br />
PascalSCADA Project<br />
<a href="http://sourceforge.net/projects/pascalscada">http://sourceforge.net/projects/pascalscada</a><br />
<a href="http://www.pascalscada.com">http://www.pascalscada.com</a><br />
<br />
<br />
----------<br />
<br />
--<br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus.freepascal.org<br />
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a></p>