Autor Beitrag
Hochhäusl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 12.03.06 14:27 
Hallo,

ich habe einen Timer, der in ein Image ein Bild lädt. Dabei nimmt er immer den nächsten Eintrag einer listbox, indem die namen der bilder stehen.
Das funktioniert soweit auch, nur sind die bilder recht unterschiedlich groß und so kann es sein, dass das bild erst fertiggeladen ist, wenn der timer schon das neue bild lädt!
Kann man in die Timerfunktion sowas wie wait, sleep einbauen, damit der timer pausiert, bis das image geladen ist?

mfg
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 12.03.06 15:19 
wie wärs damit, die bilder auf eine handliche grösse zu kürzen...? dann hast das problem nicht mehr.
Hochhäusl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 12.03.06 15:25 
Das ist nicht bei allen Bildern möglich bzw. erwünscht, da ich bilder (z.B. von ner digicam) in einer möglichst hohen auflösung speichern möchte.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 12.03.06 15:28 
Setze im OnTimer-Event zu Beginn Timer1.enabled := False; und am Ende wieder Timer1.enabled := True;

_________________
We are, we were and will not be.
Hochhäusl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 12.03.06 15:41 
Danke für die Antworten.
Jetzt funktionierts!