Article View: borland.public.cppbuilder.nativeapi
Article #16306Re: Prevent a user from checking a TListItem
From: Remy Lebeau (TeamB)
Date: Tue, 20 May 2003 23:08
Date: Tue, 20 May 2003 23:08
17 lines
1673 bytes
1673 bytes
"Rusty" <rustyr@redstorm.com> wrote in message
news:3ecaaa58$1@newsgroups.borland.com...
> How do I prevent the user from checking/unchecking
> the item when he/she presses the spacebar?
Use the OnKeyDown event to filter out spacebar keystrokes:
void __fastcall TForm1::ListView1KeyDown(TObject *Sender, WORD &Key,
TShiftState Shift)
{
if( Key == VK_SPACE )
Key = 0;
}
Gambit
Technical Details
Message-ID:
<3ecab4cb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.65.3.53.MISMATCH!news-out.spamkiller.net!propagator2-maxim!feed.newsfeeds.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3eca8580@newsgroups.borland.com> <3eca8cff@newsgroups.borland.com> <3eca928b$1@newsgroups.borland.com> <3eca9e2e@newsgroups.borland.com> <3ecaa84b$1@newsgroups.borland.com> <3ecaaa58$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a81cc7d506c46104 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-20 16:27:55 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eca8580@newsgroups.borland.com> <3eca8cff@newsgroups.borland.com> <3eca928b$1@newsgroups.borland.com> <3eca9e2e@newsgroups.borland.com> <3ecaa84b$1@newsgroups.borland.com> <3ecaaa58$1@newsgroups.borland.com> Subject: Re: Prevent a user from checking a TListItem Date: Tue, 20 May 2003 16:08:10 -0700 Lines: 19 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: 207.175.226.26 Message-ID: <3ecab4cb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053471947 207.175.226.26 (20 May 2003 16:05:47 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.65.3.53.MISMATCH!news-out.spamkiller.net!propagator2-maxim!feed.newsfeeds.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail