Como usar o comando Keydb_event no Delphi ?

Delphi

31/10/2016

Estou tentando criar um teclado virtual e queria usar este comando para programar cada botão. 1,2,3,4,5,6,7,8,9,0 , enter e backspace.
Junior Lacava

Junior Lacava

Curtidas 0

Respostas

Robson Morais

Robson Morais

31/10/2016

Bom dia, Junior poderia explicar um pouco melhor....

Para obter as teclas digitadas:

procedure TFrmTeclas.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
   ShowMessage('O nº da tecla: '+Char(ORD(Key))+' é => '+IntToStr(key));
end;
GOSTEI 0
POSTAR