Unable to change TPanel color in delphi

the color of my panel will not change using this code. I tried this with a button. I am new to Delphi, so any answers would be appreciated. Thanks

procedure TForm1.pnlClick(Sender: TObject); begin pnl.Color := clYellow; end; 
+5
source share
1 answer

Try setting the values, such as ParentBackground and ParentColor , to false.

+5
source

Source: https://habr.com/ru/post/1247382/


All Articles