🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Virtual Key problem

#16142
From: Nicholas Gessler
Date: Wed, 28 May 2003 18:38
20 lines
2148 bytes
EUDY:
OK, now I'm beginning to get it!
On my applications in which the ArrowKeys worked, focus was in an Enabled
EditBox.  Form1->KeyPreview was set to true.  When the application runs, the
ArrowKeys are "previewed" by the form and actually do something in the
FormKeyDown handler, but until you mentioned it I didn't notice that the
Cursor also moves around in the EditBox.  Since the EditBox is continually
being updated by the code I wrote, the Cursor is returned to a default
position in the EditBox every time the ArrowKeys are pressed.

REMY:
So going back to Remy's post, the Edit Control seems to pass a "hidden"
Windows Message turning the ArrowKeys "on."
I did look at FAQ78 and didn't understand it since it said NOT to write a
Windows Message for the Form.  So could you give me another hint?  Does this
mean that I need another control enabled (even if I don't use it directly)
just in order to turn the ArrowKeys "on?"

Thanks all for your patience...
Nick
Technical Details
Message-ID: <3ed501cc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!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>

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 11:56:57 PST
Reply-To: "Nicholas Gessler" <gessler@ucla.edu>
From: "Nicholas Gessler" <gessler@ucla.edu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ed17b8f@newsgroups.borland.com> <3ed1839d$1@newsgroups.borland.com> <3ed2e51d@newsgroups.borland.com> <3ED4DFC2.3060603@directnet.com>
Subject: Re: Virtual Key problem
Date: Wed, 28 May 2003 11:38:28 -0700
Lines: 22
Organization: UCLA - Geography
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 4.60.108.106
Message-ID: <3ed501cc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054147020 4.60.108.106 (28 May 2003 11:37:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!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