Курсовая работа: Моделирование систем
begin
Result := FParcels.Count;
end;
const //DrawConstants
Top = 20;
Left = 20;
Interval = 20;
procedure TQSheme.DrawElementLines;
var i : integer;
Y : integer;
begin
for i := 0 to ElementCount-1 do begin
Y :=Top + interval *i;
with Diagram.Canvas do begin
TextOut(0,Y + Font.Height,Elements[i].Name);
MoveTo(0,Y);
LineTo(Diagram.ClientWidth,Y)
end;
end;
end;
procedure TQSheme.DisplayEvents;
{var i : integer;
s : string;}
begin
{Form1.mResults.Items.Clear;
for i := 0 to FEventQueue.Count - 1 do begin
with TEventRec(FEventQueue[i]^) do begin
case Event of
EV_TAKE: S := '+++:';