Article View: borland.public.cppbuilder.nativeapi
Article #9162Re: Windows spacebar hotkey
From: Andrue Cope [TeamB]
Date: Thu, 29 Jul 2004 08:16
Date: Thu, 29 Jul 2004 08:16
26 lines
1924 bytes
1924 bytes
Chris Croughton wrote: > Keys like tab, space and > the arrow keys don't do the same thing there, and I doubt if anyone > would want them to do so whether it's a 'standard' UI feature or not. They certainly will in a dialog box. Pressing space while an edit control has the focus causes a space to be inserted. Even if you develop your own component it will not respond to [space] unless it has a reason to do so. I have developed an editor using a TBitmap to draw the text on and there was never any reason to disable [space]. It gets handled along with all the other non editing keys in the OnKeyPress handler with no effort on my part. The OP asked how to prevent [space] from activating a button and the only time it will do that is when that button has the focus. It doesn't matter what application you are developing. If a button has the focus then it is part of the Windows UI specification that pressing [space] will click it. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<4108b254$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4107b926$1@newsgroups.borland.com> <4107c851@newsgroups.borland.com> <slrncgg2ei.f6p.chris@ccserver.keris.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,af0a7a309a9df709 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@spammy.com> Subject: Re: Windows spacebar hotkey Newsgroups: borland.public.cppbuilder.nativeapi References: <4107b926$1@newsgroups.borland.com> <4107c851@newsgroups.borland.com> <slrncgg2ei.f6p.chris@ccserver.keris.net> User-Agent: XanaNews/1.16.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <4108b254$1@newsgroups.borland.com> Date: 29 Jul 2004 01:16:20 -0700 X-Trace: newsgroups.borland.com 1091088980 217.207.223.34 (29 Jul 2004 01:16:20 -0700) Lines: 26 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail