[Lazarus] clDefault propagation

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Wed Apr 27 00:54:03 CEST 2011


Paul Ishenin wrote:
> 27.04.2011 5:16, Mark Morgan Lloyd wrote:
>>
>> In that case, why is the status bar at the top of the form grey and 
>> the ones at the bottom black (as dictated by their grandparent)? 
>> They're all set to clDefault and other relevant properties are the 
>> same, so I'd expect them to look the same.
> If the default color is not defined by the theme it inherits from the 
> parent. Probably in your case you are using win32 widgetset which does 
> not define paticular color for statusbar and as result it asks about 
> default color from its parent.

Debian x86 GTK2.

>> Looking at this from the point of view of sorting the problem rather 
>> than understanding the behaviour, what colour should a status bar be 
>> set to so that it adopts the colour of the main menu background?
> 
> Set it to clBtnFace.

Thanks Paul, noted.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list