mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 14:38:01 +02:00
IDE, SourceEditor: replace numeric (statusbar) panel index with named constant
This commit is contained in:
parent
6a79e2f3d0
commit
578d026520
@ -9063,9 +9063,9 @@ begin
|
||||
end;
|
||||
W := 0;
|
||||
for i := 0 to StatusBar.Panels.Count - 1 do
|
||||
if i <> 5 then
|
||||
if i <> CStatusPanelFile then
|
||||
w := w + StatusBar.Panels[i].Width;
|
||||
StatusBar.Panels[5].Width := Max(150, StatusBar.Width - W);
|
||||
StatusBar.Panels[CStatusPanelFile].Width := Max(150, StatusBar.Width - W);
|
||||
finally
|
||||
StatusBar.EndUpdate;
|
||||
end;
|
||||
@ -9368,7 +9368,7 @@ begin
|
||||
Statusbar.Panels[CStatusPanelSel].Width := 100
|
||||
else
|
||||
Statusbar.Panels[CStatusPanelSel].Width := 50;
|
||||
Statusbar.Panels[5].Text := PanelFilename;
|
||||
Statusbar.Panels[CStatusPanelFile].Text := PanelFilename;
|
||||
if(EditorMacroForRecording.IsRecording(CurEditor)) then
|
||||
Statusbar.Panels[CStatusPanelMacro].Width := IDEImages.ScaledSize(20)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user