Delphi 2009 - create a TPanel at runtime and change its color

后端 未结 2 1752
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 17:18

got a strange problem: I create a TPanele at runtime and change its color - however, the color is still clBtnFace.

Here\' the code:

procedure TForm1.         


        
2条回答
  •  时光说笑
    2020-12-06 17:26

    When you want to have colored panels under a themed OS you have to set ParentBackground to False.

提交回复
热议问题