the color of my panel wont change with this code. I tried it with a button as well. I'm fairly new to Delphi so any answers would be appreciated. Thanks
procedure TForm1.pnlClick(Sender: TObject);
begin
pnl.Color := clYellow;
end;
Try set values like ParentBackground
and ParentColor
to false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With