Al

Yes - the VK_xxx constants are defined in Windows.Pas - Note that if you
want to check A .. Z then you must use something like

GetKeyState(Ord('A')) ...



-----Original Message-----
From: Alistair George <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Tuesday, 30 March 1999 10:19
Subject: RE: [DUG]: Trapping and using a CTRL-ENTER


Hey Paul; are you actually getting it to work by putting VK_RETURN there? My
compiler screws its nose unless I use ascii.
Cheers,
Al+
> procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word;
>   Shift: TShiftState);
> begin
>      if (Key = VK_RETURN) and (GetKeyState(VK_CONTROL) and $80 <> 0) then
>      begin
>             // do stuff
>      end;
> end;

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz




---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to