views:

581

answers:

3

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.

+1  A: 

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.

ulrichb
Yes, sure, I thought Label, not Panel. :-)
LuckyNeo
It's fixed now.
LuckyNeo
+1  A: 

Set Transparent to False. :-)

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

TOndrej
A: 

Can anyone tell me how to change a label's color to a color which is not in the list? I mean, is there a way to change the color to an exact RGB color? Please help!

Gabesz