Board index » delphi » Key Pad

Key Pad

        hi...

                anyone know keycode of left,right,up,down key?
        and also on numeric keypad either.

                                        thanks in advance
                                            Narumon

 

Re:Key Pad


Narumon Teeranuntachai (36056547) <b36...@nontri.ku.ac.th> schrieb im
Beitrag <5f2984$...@news2.cpc.ku.ac.th>...

Quote

>    hi...

>            anyone know keycode of left,right,up,down key?
>    and also on numeric keypad either.

A simple way to get the keycode of some keys on the keyboard is a
breakpoint in the procedure of a OnKeyDown - Event. You can observe the key
variable with the Delphi-De{*word*81}. So you can get the keycode of an pressed
Key.

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
{Breakpoint here}  KEy := KEy;
end;

HAgue

Other Threads