Cant change the color of a TPanel in delphi
<p>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</p>

<pre><code>procedure TForm1.pnlClick(Sender: TObject);
begin
  pnl.Color := clYellow;
end;
</code></pre>