Autor Beitrag
Paddymann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58


Delphi 5 Professional
BeitragVerfasst: So 18.09.05 15:04 
Hi!
Ich ahb da ein Problem! Ich möchte, dass mein Programm erst eine Prozedur aufruft wenn enter gedrueckt wurde. Das ist ja noch ganz klar das mache ich mit 'until'. Jetzt soll aber im Hauptprogramm immer wieder geprüft werden ob eine der PFeil tasten eingegeben wurde. Und wenn eine gedrueckt wurde, soll ein Befehl ausgeführt werden und das Programm soll danach dann wieder prüfen ob eine der Pfeiltasten eingegeben wurde. Wenn ich das in dieser Form bei mir mache if... then...
if... then...
until...
scheint das Programm abzustürzen. Kennt einer ne Möglichkeit wie ich das machen könnte?? Wer echt cool.Danke!
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 18.09.05 15:34 
Schreib doch in OnKeyDown:
ausblenden Delphi-Quelltext
1:
2:
if VK_ENTER then
  MyProcedure;

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)