Реферат: Разработка интерактивной среды обучения
frmlesson.Caption:=name;
textY:=2;
loadpage;
frmlesson.Canvas.textout(20,20,'');
end;
procedure TfrmLesson.FormDeactivate(Sender: TObject);
begin
nopaint:=true
end;
procedure TfrmLesson.Timer1Timer(Sender: TObject);
var q:tcolor;
x,y:integer;
begin
{ if not frmlesson.Visible then exit;
x:=random(frmlesson.Width);
y:=random(frmlesson.Height);
if (x in [pic1.Left..pic1.Left+pic1.Width]) or (y in
[pic1.Top..pic1.Top+pic1.Height]) then exit;
q:=frmlesson.canvas.pixels[x,y];
if q<>clwhite then begin
nopaint:=true;
texty:=1;
drawpage
end;
frmlesson.canvas.pixels[x,y]:=clred;}
end;
procedure TfrmLesson.FormCreate(Sender: TObject);
begin
npq:=0;