Hi Jeremy,

I think you have to use OnKeyDown or OnKeyUp, which will give you a
TShiftState as well.  OnKeyPress doesn't seem to give you that, but I
don't know whether the key code is different if Alt/Ctrl/Shift is down
as well.

Regards,

Bevan


[EMAIL PROTECTED] wrote:
> 
> Hi all.
> 
> I want to trap of the user is holding the ALT button down whilst using say the arrow 
>keys.
> I know the arrow keys are VK_thekey but how do I know if ALT is also being pressed ??
> 
> Cheers, Jeremy Coulter
> 
> 
> 
> Jeremy Coulter (Manager)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2533214
> www.vss.co.nz
> 
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

-- 
Bevan Edwards                           mailto:[EMAIL PROTECTED]
Achieve Software Limited                http://www.achieve.co.nz
Phone:  (64-9) 444-4210                 ICQ: 732011
Fax:    (64-9) 444-4201
Mobile: (64-21) 979-603
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to