Article View: borland.public.cppbuilder.nativeapi
Article #7395Handling key presses
From: Umut Ozden
Date: Thu, 03 Feb 2005 09:08
Date: Thu, 03 Feb 2005 09:08
15 lines
1657 bytes
1657 bytes
In (MSDOS - Turbo C++ ) based programs port number 0x60 can be used for detecting key presses, for example 0x1E and 0x9E for 'A' ; 0x1F and 0x9F for 'S'. (0x1E and 0x1F indicate that the corresponding key is down, 0x9E and 0x9F indicate that the corresponding key is up.) I'm looking for the same in BCB. I know that there are OnKeyDown and OnKeyUp events. If I supply OnKeyDown and OnKeyUp events for Form1 and if Form1 is empty the OnkeyDown and OnKeyUp for Form1 event handlers execute, but if I place anything on Form1, for example a button, the OnkeyDown and OnKeyUp event handlers for Form1 don't execute. So, there should be some Win32API for handling key presses, what are the related functions?. It's enough for me to detect that an arbitrary key is down or up as port number 0x60 in MSDOS. Thanks...
Technical Details
Message-ID:
<4201e988@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,14ca66ffe188d912,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Umut Ozden" <umut_ozden@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Handling key presses Date: Thu, 3 Feb 2005 11:08:45 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.174.88.5 Message-ID: <4201e988@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107421576 212.174.88.5 (3 Feb 2005 01:06:16 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail