Article View: borland.public.cppbuilder.nativeapi
Article #7411Re: Handling key presses
From: Hans Galema
Date: Fri, 04 Feb 2005 09:54
Date: Fri, 04 Feb 2005 09:54
13 lines
1540 bytes
1540 bytes
Umut Ozden wrote: > Yes, you are right. FormKeyUp detects arrow keys, > but FormKeyDown doesn't. > Detecting both down and up states are necessary for me. > I have to find something other than FormKeyUp and > FormKeyDown, it is probably the Win32 API > which Bob Gonder mentioned. You can use a MESSAGEMAP to trap keyhits or subclass WndProc and look for WM_KEYDOWN and WM_KEYUP. Hans.
Technical Details
Message-ID:
<420346b1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4201e988@newsgroups.borland.com> <4201ec50@newsgroups.borland.com> <42021240@newsgroups.borland.com> <42023fb4$1@newsgroups.borland.com> <420328df@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,14ca66ffe188d912 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 04 Feb 2005 10:54:45 +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: Handling key presses References: <4201e988@newsgroups.borland.com> <4201ec50@newsgroups.borland.com> <42021240@newsgroups.borland.com> <42023fb4$1@newsgroups.borland.com> <420328df@newsgroups.borland.com> In-Reply-To: <420328df@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: <420346b1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107510961 129.125.201.248 (4 Feb 2005 01:56:01 -0800) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail