mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 18:38:23 +02:00
LCL, fix dbgrid fixed cells drawing on DefaultDrawing=false, issue #21496
git-svn-id: trunk@36180 -
This commit is contained in:
parent
40a6a4cab9
commit
f431c3e138
@ -2369,6 +2369,14 @@ procedure TCustomDBGrid.PrepareCanvas(aCol, aRow: Integer;
|
|||||||
aState: TGridDrawState);
|
aState: TGridDrawState);
|
||||||
begin
|
begin
|
||||||
inherited PrepareCanvas(aCol, aRow, aState);
|
inherited PrepareCanvas(aCol, aRow, aState);
|
||||||
|
|
||||||
|
if gdFixed in aState then begin
|
||||||
|
if gdHot in aState then
|
||||||
|
Canvas.Brush.Color := FixedHotColor
|
||||||
|
else
|
||||||
|
Canvas.Brush.Color := GetColumnColor(aCol, gdFixed in AState);
|
||||||
|
end;
|
||||||
|
|
||||||
if (not FDatalink.Active) and ((gdSelected in aState) or (gdFocused in aState)) then
|
if (not FDatalink.Active) and ((gdSelected in aState) or (gdFocused in aState)) then
|
||||||
Canvas.Brush.Color := Self.Color;
|
Canvas.Brush.Color := Self.Color;
|
||||||
end;
|
end;
|
||||||
@ -2746,7 +2754,7 @@ begin
|
|||||||
if gdFixed in aState then DbgOut('F');
|
if gdFixed in aState then DbgOut('F');
|
||||||
{$endif dbgGridPaint}
|
{$endif dbgGridPaint}
|
||||||
|
|
||||||
if DefaultDrawing then
|
if (gdFixed in aState) or DefaultDrawing then
|
||||||
DefaultDrawCell(aCol, aRow, aRect, aState);
|
DefaultDrawCell(aCol, aRow, aRect, aState);
|
||||||
|
|
||||||
if (ARow>=FixedRows) and Assigned(OnDrawColumnCell) and
|
if (ARow>=FixedRows) and Assigned(OnDrawColumnCell) and
|
||||||
|
Loading…
Reference in New Issue
Block a user