Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-09

Default TControl.Color

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Micha Nelissen

Hi,

The default color in the VCL is clWindow, but the default color in the LCL is cBtnFace. This is the cause for TMemo and TListbox backgrounds to be in the clBtnFace color. I think the 'correct' way to solve this is to maintain VCL compatibility, because future controls may expect this. In that case we do need to change the default color back to clBtnFace for forms however (and maybe other controls too).

Regards,

Micha.

Reply by email

Mattias Gaertner
to Micha Nelissen
Show quoted text 8 lines
Hi, The default color in the VCL is clWindow, but the default color in the LCL is cBtnFace. This is the cause for TMemo and TListbox backgrounds to be in the clBtnFace color. I think the 'correct' way to solve this is to maintain VCL compatibility, because future controls may expect this. In that case we do need to change the default color back to clBtnFace for forms however (and maybe other controls too).

The default color is only for Delphi compatibility, so I changed it to clWindow. Don't know, why it was clBtnFace.

Mattias

Reply by email