Autor Beitrag
Fischman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Do 14.08.03 18:46 
Hallo Leute,

Ich möchte wenn man eine bestimmte taste drückt " F1 bis F12 "ein Ergebnis passiert.Könnt ihr mir da weiter helfen.

Gruß Uwe
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 14.08.03 18:51 
Hi,

schau dir mal das OnKeyDown event an.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.OnKeyDown(...);
begin
  if Key=VK_F1 then
    ShowMessage('F1 wurde gedrückt');
  if Key=VK_F7 then
    ShowMessage('F7 wurde gedrückt');
  if Key=VK_F12 then
    ShowMessage('F12 wurde gedrückt');
end;


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Fr 15.08.03 06:30 
Besten Dank,genau das habe ich gebraucht.

Gruß Uwe