1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| procedure drawqueue;
var stop: integer;
color1 : word;
begin
color1:=getcolor;
setcolor(black);
outtextxy(10,10,'drawqueue');
stop:=0;
rect:=first ;
repeat
if (rect =last) then stop:=1;
rectangle(rect^.x1,rect^.y1,rect^.x2,rect^.y2);
if first=last then break;
if rect<>last then
rect:=rect^.next;
until stop=1;
setcolor(color1);
end;
procedure deletequeue;
var color1,word1 : word;
stop:integer;
begin
color1:=getcolor;
setcolor(black);
stop:=0;
rect:=first ; {
word1:=getcolor;
setcolor(blue);
for m:=1 to 40 do
line (m,0,m,30);
setcolor(word1);
outtextxy(10,20,'drawqueue'); }
repeat
if (rect =last) then stop:=1;
rectangle(rect^.x1,rect^.y1,rect^.x2,rect^.y2);
if first=last then break;
if rect<>last then
rect:=rect^.next;
until stop=1;
setcolor(color1);
end; |
Partager