mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
LCL, grids: pretty lines for GridLineStyle=psDot, from Alexey Tor., issue #35662
git-svn-id: trunk@61383 -
This commit is contained in:
parent
19ba328eda
commit
010ccf9efa
@ -4474,7 +4474,9 @@ end;
|
||||
procedure TCustomGrid.DrawCellGrid(aCol,aRow: Integer; aRect: TRect; aState: TGridDrawState);
|
||||
var
|
||||
dv,dh: Boolean;
|
||||
OldCosmeticUsed, OldCosmetic: Boolean;
|
||||
begin
|
||||
OldCosmeticUsed := false;
|
||||
|
||||
with Canvas do begin
|
||||
|
||||
@ -4530,6 +4532,9 @@ begin
|
||||
end else begin
|
||||
Dv := goVertLine in Options;
|
||||
Dh := goHorzLine in Options;
|
||||
OldCosmeticUsed := true;
|
||||
OldCosmetic := Pen.Cosmetic;
|
||||
Pen.Cosmetic := false;
|
||||
Pen.Style := fGridLineStyle;
|
||||
Pen.Color := fGridLineColor;
|
||||
Pen.Width := fGridLineWidth;
|
||||
@ -4552,6 +4557,8 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
if OldCosmeticUsed then
|
||||
Pen.Cosmetic := OldCosmetic;
|
||||
end; // with canvas,rect
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user