🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Virtual Key problem

#16148
From: Eudy Silva
Date: Wed, 28 May 2003 21:06
20 lines
1981 bytes
Nicholas Gessler wrote:
[snip]
> Whew!!!  That was a long one.  I'm sure this is not the 
 > "proper" way to do it, but it's easy and it seems to work!

Certainly it is not. What if the user presses TAB?
Focus will change to another control, say a Button, and
the FormOnKeyDown won't be fired for the "special" keys
anymore, until focus is back to a control which responds
properly to the WM_GETDLGCODE.

For your workaround to work you have to avoid the EditBox
focus change and this might make the other controls on the
form useless (try coding EditBox->SetFocus() in the
EditBox OnExit event handler and see how disappointing
it is...)

BTW, I also need to learn the proper way to do this stuff.

Eudy
Technical Details
Message-ID: <3ED524CD.8080903@directnet.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ed17b8f@newsgroups.borland.com> <3ed1839d$1@newsgroups.borland.com> <3ed2e51d@newsgroups.borland.com> <3ED4DFC2.3060603@directnet.com> <3ed501cc@newsgroups.borland.com> <3ed507be@newsgroups.borland.com> <3ED51111.9080904@iae.cta> <3ed51dc9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b34f1e4dec3a67c2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-28 14:08:07 PST
Message-ID: <3ED524CD.8080903@directnet.com>
Date: Wed, 28 May 2003 18:06:21 -0300
From: Eudy Silva <eudy@directnet.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Virtual Key problem
References: <3ed17b8f@newsgroups.borland.com> <3ed1839d$1@newsgroups.borland.com> <3ed2e51d@newsgroups.borland.com> <3ED4DFC2.3060603@directnet.com> <3ed501cc@newsgroups.borland.com> <3ed507be@newsgroups.borland.com> <3ED51111.9080904@iae.cta> <3ed51dc9@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 200.152.8.215
X-Trace: newsgroups.borland.com 1054155861 200.152.8.215 (28 May 2003 14:04:21 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail