Скачиваний:
18
Добавлен:
01.05.2014
Размер:
833 б
Скачать
unit unit3;

interface
uses wintypes, classes;
type
TColor=Longint;
TInputPoint=record
x:longint;
y:longint;
cl:TColor;
num:integer;
end;
TPointList=class(Tlist)
protected
function GetPoint(index:integer):TInputPoint;
Procedure SetColor(index:integer; const Value:TColor);
public
property Points[index:integer]:TInputPoint read GetPoint;
property PointsColor[index:integer]:TColor write SetColor;
end;

Implementation

function TPointList.GetPoint(index:integer):TInputPoint;
begin
if index>count-1 then index:=index-count;
result:= TInputPoint(items[index]^);
end;

Procedure TPointList.SetColor(index:integer; const Value:TColor);
begin
TInputPoint(items[index]^).cl:=Value;
end;
end.
Соседние файлы в папке SOURCE
  • #
    01.05.20147.72 Кб18NONSCROL.HLP
  • #
    01.05.2014809 б18SORT.DCU
  • #
    01.05.2014630 б18Sort.pas
  • #
    01.05.2014621 б18Sort.~pas
  • #
    01.05.20141.46 Кб18UNIT3.dcu
  • #
    01.05.2014833 б18UNIT3.PAS