I've code in Delphi XE2 who work perfectly. But in Delphi XE6 it doesn't work. I create a Tform with the property AutoSize to true. I use a TPanel align alTop with a button for create some another panels.
procedure TForm2.Button1Click(Sender: TObject);
var
t :TPanel;
begin
t := TPanel.Create(self);
t.Parent := self;
t.Align := alTop;
end;
The form doesn't auto size. If I want to see all my panels I have to move the form (or try to resize, ....).
Have you any idea's ?
alTop
does more than adjust size, it positions controls too. – ShamusAutoSize
andAlign
are expected to work together. When you put aligned controls in an auto-sized container, the controls are no longer resized. The controls are positioned, and the container is resized to match the size of the controls. Not that I can find any documentation to that effect. – Shamus