procedure TForm1.Button1Click(Sender: TObject); var MyPanel: TPanel; begin MyPanel := TPanel.Create(self); MyPanel.Parent := self; MyPanel.Left := 10; MyPanel.Top := 10; MyPanel.Color := clBlue; // MyPanel.ParentBackground := false; // or // MyPanel.ControlStyle := MyPanel.ControlStyle - [csParentBackground]; end;
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3