When attempting to install the NxCollection6 runtime package (In delphi7) I receive the following error:
[Error] NxCollection6.pas(3831): Undeclared identifier: 'Offset'
[Fatal Error] NxBar6.pas(20): Could not compile used unit '..\..\Sources\Next Collection\NxCollection6.pas'
Which refers to:
function TNxTrackBar6.GetTrackRect: TRect;
begin
Result.Left := MinusRect.Right + DotToPixel(4);
Result.Right := PlusRect.Left - DotToPixel(4);
Result.Top := 0;
Result.Bottom := Result.Top + TrackHeight;
Result.Offset(0, RectHeight(ContentRect) div 2 - RectHeight(Result) div 2); <<----- This Line
end;
My sys\Types.pas has TRect defined as
PRect = ^TRect;
TRect = packed record
case Integer of
0: (Left, Top, Right, Bottom: Longint);
1: (TopLeft, BottomRight: TPoint);
end;
{$NODEFINE TRect}
Any ideas?