Autor Beitrag
horsti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Mi 14.12.05 22:52 
Hi,
wenn ich ein Ergebnis OnKeyPress in meinem Programm integrieren will, klappt das nicht.
Ich erstelle eine Prozedur:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TF_main.FormKeyPress(Sender: TObject; var Key: Char);
begin
  if key = 'k' then
    showmessage('hi');
end;



Wenn ich das Programm dann starte, sollte er ja zumindest in die Prozedur springen (bei Tastendruck), aber selbst das macht der nicht. Ich habs mit einem Breakpoint getestet.
Ereignis ist auch richtig eingetragen.
Hat jemand eine Idee?

Das Problem scheint im Programm zu sein, denn wenn ich ein neues erstelle und dort so ein Ereignis einfüge funktionierts.

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
horsti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Do 15.12.05 18:32 
KeyPreview war auf false ...