Einzelnen Beitrag anzeigen

Niko

Registriert seit: 23. Jun 2003
416 Beiträge
 
Delphi 2006 Professional
 
#8

Re: Pfeil-Cursor-Taste finden

  Alt 2. Apr 2004, 18:31
Zitat von Christian Seehase:
Damit geht's auch nicht, ausser das Control, das den Focus hat fordert, wie z.B. ein TEdit, die Tasten an.
Also bei mir funktioniert das (in OnKeyDown)...
Delphi-Quellcode:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if key = vk_up then showmessage(inttostr(ord(key)));
end;
"Electricity is actually made up of extremely tiny particles called electrons, that you cannot see with the naked eye unless you have been drinking." (Dave Barry)
  Mit Zitat antworten Zitat