🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ListItem SetFocus

#12318
From: Bob Gonder
Date: Tue, 09 Dec 2003 23:35
16 lines
1530 bytes
George wrote:

>I have my ListView and I select an item:
>
>      ListView->Selected = ListView->Items->Item[5];
>
>but this ONLY make the blue box in the listview. If I press the keyboard
>upper or down key, it doesn't move. I have to click with my mouse inside the
>listview to obtain "real" focus.

It sounds like the ListBox Window (control) doesn't have keyboard
focus. Perhaps some button or other control has the (default) focus?
Does the Tab key get you there?
Do the arrows work once you click on the listview?

OTOH, there is a Focused property too. Maybe that?
Technical Details
Message-ID: <glmctvca849o1lv5eqmb88r3a15m5tip8r@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fd5c2e0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d67c05b9f8b9a10d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-09 15:39:27 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: ListItem SetFocus
Date: Tue, 09 Dec 2003 15:35:29 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <glmctvca849o1lv5eqmb88r3a15m5tip8r@4ax.com>
References: <3fd5c2e0@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.166.32
X-Trace: newsgroups.borland.com 1071012929 67.31.166.32 (9 Dec 2003 15:35:29 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail