Autor Beitrag
Basti
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: Mo 10.01.05 21:40 
Hallo Leute.
Wie kann ich eine bestimmte Aktion ausführen, solange ein Button gedrückt wird.
OnMouseDown liefert mir das ganze nur einmal.
Aber wenn ich einen Button 5 Sekunden gedrückt halte, soll der Befehl halt
immer wieder während diesen 5 Sekunden ausgeführt werden.

Danke! :lol:

_________________
Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.
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: Mo 10.01.05 21:43 
Genau das Problem hatte ich doch auch vor ein paar Minuten... :shock:
Habs aber sein gelassen, so wichtig war mir das dann nicht.

Du könntest u.U. einen Timer starten, der in OnTimer das entsprechende tut. Und in OnMouseUp disablest du ihn wieder.

_________________
We are, we were and will not be.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mo 10.01.05 21:44 
mit OnMouseDown einleiten und mit OnMouseUp wieder abschalten...

edit: nich immer schneller sein als ich, gausi -.-

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.