Search code examples
delphicolorspropertiesdelphi-2009panel

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.


Solution

  • Set Transparent to False. :-)

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