🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Passing key presses on to another form

#4075
From: Bob Gonder
Date: Sun, 26 Mar 2006 17:39
13 lines
1447 bytes
Anders Johansen wrote:

> I want keyboard key presses
>(not mouse key events) to be passed on to the main form. I know which
>control on the main form to give focus, and how to do it, but the catching,
>screening and then passing on of the keyboard events eludes me.
>
>Any easy solutions?

Look at  SetWindowsHookEx()

If you have trouble with it, Google "borland SetWindowsHook"
Remy has posted code and advise several times on this.
Technical Details
Message-ID: <v9kd229pnqv0clgsi0al21rcp42c4k620t@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4426b7b7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2f0c7fdce41e2cf
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Passing key presses on to another form
Date: Sun, 26 Mar 2006 09:39:09 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <v9kd229pnqv0clgsi0al21rcp42c4k620t@4ax.com>
References: <4426b7b7$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.90.6
X-Trace: newsgroups.borland.com 1143394747 69.69.90.6 (26 Mar 2006 09:39:07 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail