procedure tform4.hintergrund_zeichnen;
var y:integer;
begin
form4.Image1.Repaint;
form4.image1.Canvas.Pen.Color:=clgray;
form4.image1.Canvas.Pen.style:=pssolid;
form4.image1.Canvas.Brush.Color:=$00EEE0DA;
form4.image1.Canvas.Rectangle(0,0,292,100);
form4.image1.Canvas.Pen.Color:=clblack;
form4.image1.Canvas.Rectangle(44,2,166,80);
form4.image1.Canvas.Rectangle(168,2,290,80);
form4.image1.Canvas.Font.
Name:='
Arial';
form4.image1.Canvas.Font.Size:=6;
form4.image1.Canvas.Font.Color:=stringtocolor(ini_farbe_dl);
form4.image1.Canvas.TextOut(27,80,'
DL');
form4.image1.Canvas.Font.Color:=stringtocolor(ini_farbe_ul);
form4.image1.Canvas.TextOut(27,88,'
UL');
if ini_label_raster=true
then begin //Minutenraster
form4.image1.Canvas.Pen.Color:=clgray;
form4.image1.Canvas.Pen.style:=psDot;
form4.image1.Canvas.Pen.Color:=clgray;
form4.image1.Canvas.MoveTo(44+60,78);
form4.image1.canvas.LineTo(44+60,2);
form4.image1.Canvas.MoveTo(168+60,78);
form4.image1.canvas.LineTo(168+60,2);
end;
if ini_label_100=true
then begin //100%-Linie
form4.image1.Canvas.Pen.Color:=clgray;
form4.image1.Canvas.Pen.style:=psDot;
form4.image1.Canvas.Pen.Color:=clgray;
y:=strtoint(floattostr(roundto(76/((form4.ini_zusatz)/100),0)));
y:=76-y;
form4.image1.Canvas.MoveTo(44+2,y);
form4.image1.canvas.LineTo(44+120,y);
form4.image1.Canvas.MoveTo(168+2,y);
form4.image1.canvas.LineTo(168+120,y);
end;
//Anzeige, ob Timer aktiv
if (form4.Showing=true)
and ((form1.gllabel1.Visible=true)
or (form1.gllabel2.Visible=true))
then begin
shape1.Visible:=true;
label3.Visible:=true;
end
else begin
shape1.Visible:=false;
label3.Visible:=false;
end;
end;