Hi,i want to adjust all document panels side by side with code:
w := Site.RootZone.Width div DocumentCount;
for i := ComponentCount - 1 downto 0 do
begin
if Components[i] is TLMDDockPanel then
begin
pnl := TLMDDockPanel(Components[i]);
if copy(pnl.Name, 1, 12) = 'LMDDockPanel' then
begin
Site.DockControl(pnl, Site.RootZone, alLeft);
pnl.Zone.Width := w;
end;
end;
end;
But all document windows get different width :-(
What is wrong with my code?
Comments