Autor Beitrag
tortom1000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175

Win XP, Win Server 2003 - 2012, Win 7
Delphi 7
BeitragVerfasst: Do 08.09.05 17:11 
Hallo,
kennt jemand eine (einfache) Methode, eine Buttonbeschriftung
blinken zu lassen. (button1.Caption := 'Test';).
Vielen Dank
Tom
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: Do 08.09.05 18:13 
vlt ständig n timer laufen lassen
und dann wenn caption=test dann eben caption:=''; else caption:=test;^^
TM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 74

Win xp
D7 ET
BeitragVerfasst: Do 08.09.05 18:17 
Hallo,

Da gäbs die möglichkeit mit nem Timer.
und der macht zB jede Sekunde:
ausblenden Delphi-Quelltext
1:
2:
if button1.caption='Test' then button1.caption:=''
 else button1.caption:='Test'


Is eigentlich einfach zu machen.

..

_________________
Dieser Beitrag enthält keine Schreibfehler.
Das sind versteckte Hinweise.
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Do 08.09.05 18:23 
Hallo,

was verstehst du unter blinken ?

du kannst mit einem Timer, die schriftfarbe Ändern, oder den Text verschwinden/erscheinen lassen.
etwa so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
if da then
    begin
    Button1.caption := '';
    da := false;
    exit;
    end;
    if not da then
    begin
    Button1.caption := 'Blink';
    da := true;
    exit;
    end;


Das ist nicht schön, aber es geht ..

Arne