mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:39:59 +02:00
IDE: Use DisableAutoSizing / EnableAutoSizing to speed up GUI rendering for all compiler options
git-svn-id: trunk@42077 -
This commit is contained in:
parent
31c891f4be
commit
ec8822900b
@ -272,9 +272,14 @@ begin
|
||||
Application.ProcessMessages;
|
||||
StartTime := Now;
|
||||
sbAllOptions.Anchors := [];
|
||||
RenderAllOptions(Reader);
|
||||
btnGetAll.Visible := False;
|
||||
lblStatus.Visible := False;
|
||||
DisableAutoSizing;
|
||||
try
|
||||
RenderAllOptions(Reader);
|
||||
btnGetAll.Visible := False;
|
||||
lblStatus.Visible := False;
|
||||
finally
|
||||
EnableAutoSizing;
|
||||
end;
|
||||
sbAllOptions.Anchors := [akLeft,akTop, akRight, akBottom];
|
||||
CondStatusbar.Panels[2].Text := 'Render took ' + FormatDateTime('hh:nn:ss', Now-StartTime);
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user