Article View: borland.public.cppbuilder.nativeapi
Article #6998Application wide and System wide "OnKeyDown"
From: John
Date: Tue, 22 Mar 2005 04:18
Date: Tue, 22 Mar 2005 04:18
11 lines
1382 bytes
1382 bytes
TForm component has an event handler "OnKeyDown" in which we can check if a
particular key is pressed while our form is active/infocus.
I have two question regarding the "OnKeyDown" functionality;
1-) If our application consists of many forms, including forms loaded
dynamically from DLLs, how we can centralize the "OnKeyDown" event handler?
2-) Similar to the "OnKeyDown" event handler, I want to be able to
capture/monitor if a particular key combination is pressed in Windows
regardless of which application is active/infocus at a given time. How can I
do this ?
Thx.
Technical Details
Message-ID:
<423f9cae@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f577502ce0dd4b06,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: <John> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Application wide and System wide "OnKeyDown" Date: Tue, 22 Mar 2005 15:18:47 +1100 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 211.30.60.151 Message-ID: <423f9cae@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111465134 211.30.60.151 (21 Mar 2005 20:18:54 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail