This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
different panelwidth when aligning with code
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