You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R := Rect(Left, Min(Top, Bottom), Left + 1, Max(Top, Bottom) + 1);
11494
+
R := Rect(Left, Min(Top, Bottom), Left + LineWidth, Max(Top, Bottom) + LineWidth);
11494
11495
if pFixedColumn and (TVtPaintOption.toShowVertGridLines in TreeOptions.PaintOptions) then // In case we showe grid lines, we must use a color for the fixed column that differentiates from the normal gridlines
11495
11496
StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenHot), R {$IF CompilerVersion >= 34}, @R, CurrentPPI{$IFEND})
11496
11497
else begin
@@ -19150,6 +19151,20 @@ function TBaseVirtualTree.LevelNodes(NodeLevel: Cardinal): TVTVirtualNodeEnumera
19150
19151
Result.FNodeLevel := NodeLevel;
19151
19152
end;
19152
19153
19154
+
function TBaseVirtualTree.LineWidth: TDimension;
19155
+
// Returns the width in pixels that should be used to draw grid lines, see issue #1203
19156
+
begin
19157
+
// Always use line width of 1 for older Delphi versions.
19158
+
{$if CompilerVersion < 31}
19159
+
Exit(1);
19160
+
{$else}
19161
+
if FCurrentPPI < 200 then
19162
+
Exit(1) // Always use 1 pixel is scaled <=200%
19163
+
else
19164
+
Exit(MulDiv(1, Self.FCurrentPPI, 132)); // Use 132 dpi instead of the typical 96 so that line width increase slightly slower than the actual scaling, so we have a 3px line at 400%
0 commit comments