Re: [Lazarus] Colors and Themes

2009-01-26 Thread Graeme Geldenhuys
On Tue, Jan 27, 2009 at 9:24 AM, Paul Ishenin wrote: > > If you are about lcl-win32 then yes. When LCL process clBtnFace it calls > winapi function GetSysColor. Ofcource there can be problems with already > created brushes, pens and fonts which was created before theme change. OK, thanks Paul.

Re: [Lazarus] Colors and Themes

2009-01-26 Thread Paul Ishenin
Graeme Geldenhuys wrote: > Does clBtnFace update to the correct colour if you apply a new windows > colour scheme (without quitting the application)? > > eg: > * using default colour scheme in windows (usual grey colours). > * start my app and button is painted in grey (clBtnFace). > * I change

Re: [Lazarus] Colors and Themes

2009-01-26 Thread Graeme Geldenhuys
On Tue, Jan 27, 2009 at 3:39 AM, Paul Ishenin wrote: > button on themed XP or vista. But if you turn themes off all standard > buttons will be painted using clBtnFace. Does clBtnFace update to the correct colour if you apply a new windows colour scheme (without quitting the application)? eg: *

Re: [Lazarus] Colors and Themes

2009-01-26 Thread Paul Ishenin
Hans-Peter Diettrich wrote: > You're right, it are other cl... colors that are deprecated. The lack of > documentation sucks :-( > > Are the system colors always mapped to the current standards, including > themes? Well, with themes some controls are often painted using bitmaps instead of col

Re: [Lazarus] Colors and Themes

2009-01-26 Thread Hans-Peter Diettrich
Paul Ishenin schrieb: >> For Windows e.g. clActiveCaption or clBtnFace can be used for the header >> and button background, but these color constants are marked deprecated. >> How should I select the most appropriate colors, for different platforms >> and themes? > > Where have you found that

Re: [Lazarus] Colors and Themes

2009-01-25 Thread Paul Ishenin
Hans-Peter Diettrich wrote: > For Windows e.g. clActiveCaption or clBtnFace can be used for the header > and button background, but these color constants are marked deprecated. > How should I select the most appropriate colors, for different platforms > and themes? Where have you found that th

[Lazarus] Colors and Themes

2009-01-25 Thread Hans-Peter Diettrich
When I wanted to add dock headers to the docking manager, I stumbled across several problems with colors. For Windows e.g. clActiveCaption or clBtnFace can be used for the header and button background, but these color constants are marked deprecated. How should I select the most appropriate col