Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在值clRed上设置Label的颜色时,它上面的红色只会闪烁一会儿。color 属性仍然具有 clRed 值,但实际上它具有默认的 clBtnFace颜色。
屏幕截图更好地描述了这个问题。
将透明设置为 False。:-)
编辑:假设它是一个 TLabel,如屏幕截图所示。
你的意思是 aTLabel还是 a TPanel?您的屏幕截图显示了一个标签,但它应该适用于两个组件。
TLabel
TPanel
确保该ParentColor属性设置为false。
ParentColor
false