[Lazarus] clDefault for brushes and fonts

Luiz Americo Pereira Camara luizmed at oi.com.br
Sat Nov 20 02:49:29 CET 2010

Paul Ishenin escreveu:
> Hello, Lazarus mailing list.
> I want to inform you that starting with r28344 all controls default 
> fonts an brushes will have clDefault color instead of 
> clBtnFace/clWindow as you had for years.
> That was made because non windows widgetsets does not use clBtnFace 
> color for forms, clWindow for edit controls and also have different 
> ideas regards default font colors 
> (http://bugs.freepascal.org/view.php?id=13577, 
> http://bugs.freepascal.org/view.php?id=14571, 
> http://bugs.freepascal.org/view.php?id=12550).
> I believe that I can't foresee all the situations where your code 
> depends on this. So I expect you will see some graphic glitches but 
> hope not much. Please report them as unswer to this message and to the 
> bug tracker.

VirtualTreeView paints the background in black. This occurs because it 
assigns the TControl.Color to a temp bitmap brush.

Not big deal since i can change Color to clWindow (or check for clDefault)


More information about the Lazarus mailing list