mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:39:25 +02:00
LCL, fix normal row drawing over fixed row (gtk), issue #13404
git-svn-id: trunk@27549 -
This commit is contained in:
parent
71bf9bda93
commit
962c2c3c0c
@ -4133,7 +4133,9 @@ begin
|
|||||||
end else
|
end else
|
||||||
if goSmoothScroll in Options then begin
|
if goSmoothScroll in Options then begin
|
||||||
CacheVisibleGrid;
|
CacheVisibleGrid;
|
||||||
R.TopLeft:=Point(0, FGCache.FixedHeight);
|
with FGCache do
|
||||||
|
R.TopLeft := Point(0,
|
||||||
|
TWSCustomGridClass(WidgetSetClass).InvalidateStartY(FixedHeight, TLRowOff));
|
||||||
R.BottomRight:=FGCache.MaxClientXY;
|
R.BottomRight:=FGCache.MaxClientXY;
|
||||||
if FGcache.MaxClientXY.Y<FGCache.ClientHeight then
|
if FGcache.MaxClientXY.Y<FGCache.ClientHeight then
|
||||||
R.BottomRight.y := FGCache.ClientHeight;
|
R.BottomRight.y := FGCache.ClientHeight;
|
||||||
|
@ -35,6 +35,7 @@ type
|
|||||||
TGtkWSCustomGrid = class(TWSCustomGrid)
|
TGtkWSCustomGrid = class(TWSCustomGrid)
|
||||||
published
|
published
|
||||||
class procedure SetFont(const AWinControl: TWinControl; const AFont: TFont); override;
|
class procedure SetFont(const AWinControl: TWinControl; const AFont: TFont); override;
|
||||||
|
class function InvalidateStartY(const FixedHeight, RowOffset: Integer): integer; override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -48,4 +49,13 @@ begin
|
|||||||
//
|
//
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class function TGtkWSCustomGrid.InvalidateStartY(const FixedHeight,
|
||||||
|
RowOffset: Integer): integer;
|
||||||
|
begin
|
||||||
|
if RowOffset<>0 then
|
||||||
|
result := 0
|
||||||
|
else
|
||||||
|
result := FixedHeight;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -54,6 +54,7 @@ type
|
|||||||
TWSCustomGrid = class(TWSCustomControl)
|
TWSCustomGrid = class(TWSCustomControl)
|
||||||
published
|
published
|
||||||
class procedure SendCharToEditor(AEditor:TWinControl; Ch: TUTF8Char); virtual;
|
class procedure SendCharToEditor(AEditor:TWinControl; Ch: TUTF8Char); virtual;
|
||||||
|
class function InvalidateStartY(const FixedHeight, RowOffset: Integer): integer; virtual;
|
||||||
end;
|
end;
|
||||||
TWSCustomGridClass = class of TWSCustomgrid;
|
TWSCustomGridClass = class of TWSCustomgrid;
|
||||||
|
|
||||||
@ -80,6 +81,11 @@ begin
|
|||||||
AEditor.Dispatch(GMsg);
|
AEditor.Dispatch(GMsg);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class function TWSCustomGrid.InvalidateStartY(const FixedHeight, RowOffset: Integer): Integer;
|
||||||
|
begin
|
||||||
|
result := FixedHeight;
|
||||||
|
end;
|
||||||
|
|
||||||
{ WidgetSetRegistration }
|
{ WidgetSetRegistration }
|
||||||
|
|
||||||
function RegisterCustomGrid: Boolean;
|
function RegisterCustomGrid: Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user