procedure TBallThread.Execute; begin while not Terminated do begin ... Synchronize(DrawBall); Sleep(FBall.Speed); end; end;