🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: catch key combos

#12006
From: Thorsten Kettner
Date: Mon, 05 Jan 2004 12:53
12 lines
1446 bytes
"Kevin Johnson" <kevjson@hotmail.com> wrote:
>Hi all, could anyone point me in the right direction with this 
>one.  I have a DLL with a form within it.  I need to catch 
>keyboard combinations (ATL+CTRL+K) within the form and I don't 
>really know how.  

The keys go directly to the active control. To catch them in the
form, set the form's property KeyPreview = true. Then you get
the keys in OnKeyDown, OnKeyUp and OnKeyPress. You don't get key
combinations with ALT in OnKeyPress however, so use OnKeyUp or
OnKeyDown in that case.
Technical Details
Message-ID: <3ff96c3f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ff834e3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,366b8026c8e3e676
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-05 06:10:00 PST
From: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de>
Subject: Re: catch key combos
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.91     
X-Forwarded-For: 129.225.1.108
References:  <3ff834e3@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3ff96c3f$1@newsgroups.borland.com>
Date: 5 Jan 2004 05:53:03 -0700
X-Trace: newsgroups.borland.com 1073310783 207.105.83.66 (5 Jan 2004 05:53:03 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail