Skip to content

Commit ca28e53

Browse files
committed
Fix for compiler error in Delhi 10, Issue #1237
1 parent 5add9ce commit ca28e53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/VirtualTrees.BaseTree.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11518,7 +11518,7 @@ procedure TBaseVirtualTree.DrawGridLine(Canvas: TCanvas; R: TRect);
1151811518
Canvas.Brush.Color := FColors.GridLineColor;
1151911519
Canvas.Brush.Style := bsSolid;
1152011520
Canvas.FillRect(R);
11521-
//StyleServices.DrawElement(Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenSelectedNotFocused), R, @R, CurrentPPI);
11521+
//StyleServices.DrawElement(Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenSelectedNotFocused), R {$IF CompilerVersion >= 34}, @R, CurrentPPI{$IFEND});
1152211522
end;
1152311523

1152411524
//----------------------------------------------------------------------------------------------------------------------
@@ -11542,16 +11542,16 @@ procedure TBaseVirtualTree.DrawGridVLine(const PaintInfo: TVTPaintInfo; Top, Bot
1154211542
begin
1154311543
R := Rect(Left, Min(Top, Bottom), Left + 1, Max(Top, Bottom) + 1);
1154411544
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
11545-
StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenHot), R, @R, CurrentPPI)
11545+
StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenHot), R {$IF CompilerVersion >= 34}, @R, CurrentPPI{$IFEND})
1154611546
else begin
1154711547
if StyleServices.IsSystemStyle then // This approach does not work well for many VCL styles, so we added an else case
1154811548
begin
1154911549
DrawGridLine(PaintInfo.Canvas, R)
11550-
//StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenSelectedNotFocused), R, @R, CurrentPPI)
11550+
//StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tlGroupHeaderLineOpenSelectedNotFocused), R {$IF CompilerVersion >= 34}, @R, CurrentPPI{$IFEND})
1155111551
end
1155211552
else begin
1155311553
DrawGridLine(PaintInfo.Canvas, R)
11554-
//StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tbGroupBoxNormal), R, @R, CurrentPPI);
11554+
//StyleServices.DrawElement(PaintInfo.Canvas.Handle, StyleServices.GetElementDetails(tbGroupBoxNormal), R {$IF CompilerVersion >= 34}, @R, CurrentPPI{$IFEND});
1155511555
end;
1155611556
end;// else
1155711557
end;

0 commit comments

Comments
 (0)