[Lazarus] Transparent Custom Drawn Controls

Krzysztof dibo20 at wp.pl
Thu Sep 20 19:46:11 CEST 2012

I found another solution. The best thing in Custom Drawn Controls is
that all drawing logic is in drawer object. So I am just creating own
component TMyCDStaticText which inherit from TGraphicControl and then
in Paint method I call GetDefaultDrawer.DrawStaticText(). So with this
trick I have transparent label. This same with buttons etc (I don't
need focus states in my application ) ... :)

More information about the Lazarus mailing list