Autor Beitrag
Grolle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: Mo 20.06.05 21:23 
Hi!
Wie kann ich Mithilfe eines Timers oder eines delay ein
Image blinken lassen?
Viele Grüße: Grolle
der_zaehe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

WinXP SP2
D6 Pers, D2005 Prof, VS2005
BeitragVerfasst: Mo 20.06.05 21:29 
was meinst du mit "blinken" ? verschwinden und wiedererscheinen lassen?
dann würde ich einfach in des OnTimer ereigniss eines timers reinschreiben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if deinBild.Visible = TRUE then
  deinBild.visible := FALSE
else
  deinBild.visible := TRUE;

dann noch die intervall-länge des timers auf die gewünschte zeit setzen - und fertig!

ich hoff ich hab dein problem da richtig verstanden.

_________________
[inspirationslos]
Grolle Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: Mo 20.06.05 21:38 
hi!
Ja genau verschwinden und wieder erscheinen lassen, aber infolge
eines Ereignisses:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if irgendwas = true then
  blink wie wild
else
  einfach nur anzeigen


Grolle
der_zaehe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

WinXP SP2
D6 Pers, D2005 Prof, VS2005
BeitragVerfasst: Mo 20.06.05 21:42 
start doch einfach den timer, sobald dein ereigniss eintritt. sobald dann das end-ereigniss kommt, stoppst du ihn wieder.
gibt es kein end-ereigniss? auch kein prob:
nimm einfach ne Integer oder sowat in der richtung und lass die bei jedem timer-eregniss hochzählen und überprüfen. wenns dann z.B. 100 mal durchgelaufen ist, kannst du den timer stoppen

_________________
[inspirationslos]
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 20.06.05 21:46 
ich würds so machen

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure OnTimer(Sender : TObject);
begin
  myimage.visible := (not myimage.visible) or orgendwas // = true braucht man nicht immer  // ist kompakter
end;
Grolle Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: Mo 20.06.05 22:13 
Danke, werde es testen.