Lukáš Neoproud
Lukáš Neoproud

Reputation: 902

Setting Label and StaticText Color property problem - Delphi 2009

When I set the Label's color e.g. on value clRed, the red on it only blink for a while. The color property still has clRed value, but in fact it has default clBtnFace color.

Screenshot discribes the problem better.

Upvotes: 1

Views: 7155

Answers (2)

Ondrej Kelle
Ondrej Kelle

Reputation: 37221

Set Transparent to False. :-)

Edit: assuming it's a TLabel, as shown in the screenshot.

Upvotes: 3

ulrichb
ulrichb

Reputation: 20054

Do you mean a TLabel or a TPanel? Your screenshot shows a label, but it should work for both components.

Make sure that the ParentColor property is set to false.

Upvotes: 2

Related Questions