Article View: borland.public.cppbuilder.nativeapi
Article #4082Re: Passing key presses on to another form
From: Anders Johansen
Date: Tue, 28 Mar 2006 05:58
Date: Tue, 28 Mar 2006 05:58
23 lines
1476 bytes
1476 bytes
"Anders Johansen" <home@dduck.dk> wrote: >Well, I had hoped for something a little less heavy duty. I am already >using swhe for quite a few things, but would like to contain the usage >somewhat. OK, found a solution that seems to work. It goes roughly like this: In the OnKeyDown event of the floating form: ------------- <control in the main form for focus>->SetFocus(); Application->ProcessEvents(); // Make it so kbd_event(Key, 0, 0, 0); kbd_event(Key, <up>); ------------- Seems to work fine. Sincerely, Anders
Technical Details
Message-ID:
<4428de8c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4426b7b7$1@newsgroups.borland.com> <v9kd229pnqv0clgsi0al21rcp42c4k620t@4ax.com> <44280790$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: "Anders Johansen" <home@dduck.dk> Sender: "Anders Johansen" <home@dduck.dk> Reply-To: "Anders Johansen" <home@dduck.dk> Subject: Re: Passing key presses on to another form Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 130.226.221.206 References: <4426b7b7$1@newsgroups.borland.com> <v9kd229pnqv0clgsi0al21rcp42c4k620t@4ax.com> <44280790$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4428de8c$1@newsgroups.borland.com> Date: 27 Mar 2006 22:58:20 -0700 X-Trace: newsgroups.borland.com 1143529100 207.105.83.66 (27 Mar 2006 22:58:20 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail