🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ListView Select Item

#16045
From: Remy Lebeau (TeamB)
Date: Sun, 01 Jun 2003 21:14
18 lines
1424 bytes
"Yassin" <urmail@yahoo.com> wrote in message
news:3eda607a$1@newsgroups.borland.com...

> I want to select (focus) an item of index 3 for example
> in my ListView by clicking in a button (so not directly
> by clicking on the item itself). Any suggestions?

Simply set the ListView's Selected property:

    ListView1->Selected = ListView1->Items->Item[3];

Alternatively, set the Selected property of the specific ListItem itself:

    ListView1->Items->Item[3]->Selected = true;


Gambit
Technical Details
Message-ID: <3eda6c05$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eda607a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b4a177b013b33e1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-01 14:16:20 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eda607a$1@newsgroups.borland.com>
Subject: Re: ListView Select Item
Date: Sun, 1 Jun 2003 14:14:32 -0700
Lines: 20
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: <3eda6c05$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054501893 207.175.226.26 (1 Jun 2003 14:11:33 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail