procedure TForm1.Timer1Timer(Sender: TObject);
var buffer: TBitmap;
begin
buffer := TBitmap.Create;
buffer.width := paintbox.width;
buffer.height := paintbox.height;
Dec(x1, StepWidth);
Dec(x2, StepWidth);
buffer.Canvas.TextOut(x1, 0, sLaufSchrift);
buffer.Canvas.TextOut(x2, 0, sLaufSchrift);
if x1 < 0
then x2 := PaintBox.Width + x1;
if x2 < 0
then x1 := PaintBox.Width + x2;
bitblt(paintbox.canvas.handle,0,0,paintbox.width,paintbox.height,buffer.canvas.handle,0,0,srccopy);
buffer.free;
end;