On Thu, 14 Dec 2006 21:20:43 +0100
Koenraad Lelong <[EMAIL PROTECTED]> wrote:

> Hi,
> I would like to make my application respond to function keys. How can
> I do that ?
> I tried the form's KeyPres-event, with Keypreview on, with no result.

Use KeyDown event.

if Key=VK_F1 then begin
  .. handle key ...
  Key:=VK_UNKNOWN; // mark as handled
end;


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to