🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: simple Keypress question

#16073
From: Tom Woodrow
Date: Mon, 02 Jun 2003 23:07
21 lines
1599 bytes
eat the space in an OnChange event handler;

Tom Woodrow

micheal davis wrote:
> Hi all,
> 
> I've an TEdit control that I want to avoid users entering spaces in it, so I
> want to disable the key press of the space bar in the TEdit control
> 
> I've tried VK_SPACE under keydown event although it didn't work,
> if(Key==VK_SPACE)
> { Key=0;
> }
> so does anyone know what is the number for the space bar in order to use it
> under the keypress event.
> 
> thanks a lot for your help and support
> 
> 
> 
Technical Details
Message-ID: <3EDBD8C7.1080801@attbi.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3edaa344@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d03b79cb5ee12d8a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-02 16:11:20 PST
Message-ID: <3EDBD8C7.1080801@attbi.com>
Date: Mon, 02 Jun 2003 16:07:51 -0700
From: Tom Woodrow <tomwoodrow@attbi.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: simple Keypress question
References: <3edaa344@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.234.53.246
X-Trace: newsgroups.borland.com 1054595269 12.234.53.246 (2 Jun 2003 16:07:49 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail