Delphi: Catch F8 keypress
Posted on 2009-06-30
I have a TOvcPictureField which contains a date. I want to be able to change the date up and down by pressing the F7 and F8 buttons when the field is in focus. I can do it with the '+' and '-' keys using this code:
Case Key of
'+' : edtFromDate.AsDateTime:=edtFromDate.AsDateTime+1;
'-' : edtFromDate.AsDateTime:=edtFromDate.AsDateTime-1;
But I can't find out what the code for the F7 and F8 keys are. Can anyone help?