Setting Label and StaticText Color property problem - Delphi 2009

倖福魔咒の 提交于 2021-01-28 22:51:28

问题


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:


Set Transparent to False. :-)

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




回答2:


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.



来源:https://stackoverflow.com/questions/981510/setting-label-and-statictext-color-property-problem-delphi-2009

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!