[Lazarus] csOpaque seems to be broken in 0.9.29

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Dec 24 14:26:12 CET 2009


Looks like this problem with transparent containers is inherited from Delphi:

http://docwiki.embarcadero.com/VCL/en/Controls.TControl.ControlStyle

Here csOpaque is defined as: The control completely fills its client rectangle.

And here describes and not very intuitive way to make a TPanel transparent:

http://groups.google.com/group/borland.public.delphi.vcl.components.writing/browse_thread/thread/90f253093d15820e/9385f971b8bf50a4?lnk=st&q=delphi+tpanel+transparent&rnum=2&pli=1

On the other hand I wonder if simply writing an empty routine to catch
LM_ERASEBKGND and a Paint handler which doesn't paint wouldn't solve
this issue and make a TWinControl transparent.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list