🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7425

Re: Handling key presses

#7425
From: Timothy H. Buchman
Date: Mon, 07 Feb 2005 17:00
31 lines
2192 bytes
"Umut Ozden" <umut_ozden@yahoo.com> wrote in message 
news:4201e988@newsgroups.borland.com...
> 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 recommend these two references:

http://www.temporaldoorway.com/programming/cbuilder/advancedissue/oddkeys.htm

http://216.101.185.148/scripts/isapi.dll/article?id=4A853A91&article=1172660

As others have noted, you also need the online help for
KeyPreview  and
TButton::Default

All this is not entirely Borland's fault;  Your problems are common 
when porting legacy DOS applications to anyone's Windows development 
framework.  If at all possible, consider a more Windows-oriented 
interface, if time and budget permit.

-- 
Timothy H. Buchman
========================================
City Center Theater, New York NY
mail address tbuchmanPLEASE(at sign)REMOVEcitycenterD O Torg
Search .borland message archive on http://www.tamaracka.com/search.htm 
Technical Details
Message-ID: <42079eb5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4201e988@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
From: "Timothy H. Buchman" <tbuchmanREMOVE(at)PLEASEcitycenter D O To r  g>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4201e988@newsgroups.borland.com>
Subject: Re: Handling key presses
Date: Mon, 7 Feb 2005 12:00:28 -0500
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 69.3.192.159
Message-ID: <42079eb5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107795637 69.3.192.159 (7 Feb 2005 09:00:37 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail