mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 12:49:12 +02:00
--- Merging r40804 into '.':
U packages/ide/fpmwnd.inc U packages/ide/fpide.pas --- Recording mergeinfo for merge of r40804 into '.': U . --- Merging r40811 into '.': U packages/fv/src/editors.pas U packages/fv/src/statuses.pas U packages/fv/src/validate.pas --- Recording mergeinfo for merge of r40811 into '.': G . # revisions: 40804,40811 r40804 | michael | 2019-01-08 05:15:38 +0100 (Tue, 08 Jan 2019) | 1 line Changed paths: M /trunk/packages/ide/fpide.pas M /trunk/packages/ide/fpmwnd.inc * Apply patch from Margers to fix bug ID #6496 r40811 | marco | 2019-01-09 11:18:36 +0100 (Wed, 09 Jan 2019) | 1 line Changed paths: M /trunk/packages/fv/src/editors.pas M /trunk/packages/fv/src/statuses.pas M /trunk/packages/fv/src/validate.pas * patch from Margers that fixes parameter arrays formatstr, mantis 34839 git-svn-id: branches/fixes_3_2@41895 -
This commit is contained in:
parent
a857741040
commit
15b84360ab
@ -1180,7 +1180,7 @@ procedure TIndicator.Draw;
|
|||||||
VAR
|
VAR
|
||||||
Color : Byte;
|
Color : Byte;
|
||||||
Frame : Char;
|
Frame : Char;
|
||||||
L : array[0..1] of Longint;
|
L : array[0..1] of PtrInt;
|
||||||
S : String[15];
|
S : String[15];
|
||||||
B : TDrawBuffer;
|
B : TDrawBuffer;
|
||||||
begin
|
begin
|
||||||
|
@ -785,7 +785,7 @@ var
|
|||||||
B : TDrawBuffer;
|
B : TDrawBuffer;
|
||||||
C : Word;
|
C : Word;
|
||||||
FillSize : Word;
|
FillSize : Word;
|
||||||
PercentDone : LongInt;
|
PercentDone : PtrInt;
|
||||||
S : String[4];
|
S : String[4];
|
||||||
begin
|
begin
|
||||||
{ fill entire view }
|
{ fill entire view }
|
||||||
|
@ -919,7 +919,7 @@ END;
|
|||||||
{---------------------------------------------------------------------------}
|
{---------------------------------------------------------------------------}
|
||||||
PROCEDURE TRangeValidator.Error;
|
PROCEDURE TRangeValidator.Error;
|
||||||
CONST PXErrMsg = 'Value not in the range';
|
CONST PXErrMsg = 'Value not in the range';
|
||||||
VAR Params: Array[0..1] Of Longint;
|
VAR Params: Array[0..1] Of PtrInt;
|
||||||
BEGIN
|
BEGIN
|
||||||
Params[0] := Min; { Transfer min value }
|
Params[0] := Min; { Transfer min value }
|
||||||
Params[1] := Max; { Transfer max value }
|
Params[1] := Max; { Transfer max value }
|
||||||
|
@ -1662,7 +1662,10 @@ procedure TIDEApp.UpdateRecentFileList;
|
|||||||
var P: PMenuItem;
|
var P: PMenuItem;
|
||||||
{ID,}I: word;
|
{ID,}I: word;
|
||||||
FileMenu: PMenuItem;
|
FileMenu: PMenuItem;
|
||||||
|
R: TRect;
|
||||||
|
AdjustRecentCount : word;
|
||||||
begin
|
begin
|
||||||
|
if not assigned(MenuBar) then exit;
|
||||||
{ ID:=cmRecentFileBase;}
|
{ ID:=cmRecentFileBase;}
|
||||||
FileMenu:=SearchSubMenu(MenuBar^.Menu,menuFile);
|
FileMenu:=SearchSubMenu(MenuBar^.Menu,menuFile);
|
||||||
repeat
|
repeat
|
||||||
@ -1688,14 +1691,26 @@ begin
|
|||||||
if (P<>nil) and IsSeparator(P) then
|
if (P<>nil) and IsSeparator(P) then
|
||||||
RemoveMenuItem(FileMenu^.SubMenu,P);
|
RemoveMenuItem(FileMenu^.SubMenu,P);
|
||||||
|
|
||||||
if RecentFileCount>0 then
|
GetExtent(R);
|
||||||
|
AdjustRecentCount :=0;
|
||||||
|
{calculate how much lines on screen for reacent files can be used }
|
||||||
|
if r.b.y-r.a.y -19 > 0 then AdjustRecentCount:=r.b.y-r.a.y -19;
|
||||||
|
{only if there is enough space then show all reacent files }
|
||||||
|
{else cut list shorter }
|
||||||
|
if RecentFileCount < AdjustRecentCount then
|
||||||
|
AdjustRecentCount:=RecentFileCount;
|
||||||
|
|
||||||
|
if AdjustRecentCount>0 then
|
||||||
|
begin
|
||||||
AppendMenuItem(FileMenu^.SubMenu,NewLine(nil));
|
AppendMenuItem(FileMenu^.SubMenu,NewLine(nil));
|
||||||
for I:=1 to RecentFileCount do
|
|
||||||
|
for I:=1 to AdjustRecentCount do
|
||||||
begin
|
begin
|
||||||
P:=NewItem('~'+IntToStr(I)+'~ '+ShrinkPath(SmartPath(RecentFiles[I].FileName),27),' ',
|
P:=NewItem('~'+IntToStr(I)+'~ '+ShrinkPath(SmartPath(RecentFiles[I].FileName),27),' ',
|
||||||
kbNoKey,cmRecentFileBase+I,hcRecentFileBase+I,nil);
|
kbNoKey,cmRecentFileBase+I,hcRecentFileBase+I,nil);
|
||||||
AppendMenuItem(FileMenu^.SubMenu,P);
|
AppendMenuItem(FileMenu^.SubMenu,P);
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIDEApp.UpdateTools;
|
procedure TIDEApp.UpdateTools;
|
||||||
|
@ -38,6 +38,7 @@ begin
|
|||||||
Mode.col:=x;
|
Mode.col:=x;
|
||||||
Mode.row:=y;
|
Mode.row:=y;
|
||||||
SetScreenVideoMode(Mode);
|
SetScreenVideoMode(Mode);
|
||||||
|
UpdateRecentFileList; {ensure file menu not go over screen}
|
||||||
Redraw;
|
Redraw;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user