Article View: borland.public.cppbuilder.nativeapi
Article #7016Re: Application wide and System wide "OnKeyDown"
From: Hans Galema
Date: Tue, 22 Mar 2005 10:27
Date: Tue, 22 Mar 2005 10:27
18 lines
1711 bytes
1711 bytes
John wrote: > 1-) If our application consists of many forms, including forms loaded > dynamically from DLLs, how we can centralize the "OnKeyDown" event handler? Maybe this hint will do: Assign an eventhandler for TApplication OnMessage. React on WM_KEYDOWN. See help for TApplication OnMessage. > 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 ? Google for windows keyboarhook. Hans.
Technical Details
Message-ID:
<423ff395@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<423f9cae@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f577502ce0dd4b06 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 22 Mar 2005 11:27:37 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Application wide and System wide "OnKeyDown" References: <423f9cae@newsgroups.borland.com> In-Reply-To: <423f9cae@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <423ff395@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111487381 129.125.201.248 (22 Mar 2005 02:29:41 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail