Stan,
du proggst doch schon lang genug, oder?
Delphi-Quellcode:
// nur Sleep
For i := 0 to Form1.ClientWidth - Shape1.Width do Begin
Shape1.Left := i;
Sleep(20);
End;
// Sleep + ProcessMessages
For i := 0 to Form1.ClientWidth - Shape1.Width do Begin
Shape1.Left := i;
Sleep(20);
Application.ProcessMessages;
End;
@nailor:
ich hatte einfach nur 'ne Zahl dort eingegeben ... bei mir ist sleep(10) das Kleinste, egal was ich eingeb, außerdem ging es mir auch um was anderes.
Ein Therapeut entspricht 1024 Gigapeut.