Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Visual selection on TListView component goes away when focus changes: C++ Builder

Reply
Thread Tools

Visual selection on TListView component goes away when focus changes: C++ Builder

 
 
arun venkatesan
Guest
Posts: n/a
 
      04-21-2004
Hi,
We use a TListView component in C++ Builder to enable the user make
some selections. When the user makes a selection, the selected rows
are highlighted in 'Blue'.

Now, my application is such that the user can use the 'Tab' key to
move to different components on his screen, after making the
selection. When he does so, the 'Blue' color of the selected rows goes
away and the user cannot see his selection in the TListView in 'Blue',
because the TListView is not the object of focus.

Question is: How to alow the user to see his selection on a component
that is not currently focussed? (i.e.) How to retain the 'Blue' color
on the user selections in the TListView?

Thanx in advance

-arun
 
Reply With Quote
 
 
 
 
Sharad Kala
Guest
Posts: n/a
 
      04-21-2004

"arun venkatesan" <> wrote in message
news: om...
> Hi,
> We use a TListView component in C++ Builder to enable the user make
> some selections. When the user makes a selection, the selected rows
> are highlighted in 'Blue'.
>
> Now, my application is such that the user can use the 'Tab' key to
> move to different components on his screen, after making the
> selection. When he does so, the 'Blue' color of the selected rows goes
> away and the user cannot see his selection in the TListView in 'Blue',
> because the TListView is not the object of focus.
>
> Question is: How to alow the user to see his selection on a component
> that is not currently focussed? (i.e.) How to retain the 'Blue' color
> on the user selections in the TListView?


Sorry, but the question is offtopic on this newsgroup.
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9


 
Reply With Quote
 
 
 
 
Peter van Merkerk
Guest
Posts: n/a
 
      04-21-2004
"arun venkatesan" <> wrote in message
news: om...
> Hi,
> We use a TListView component in C++ Builder to enable the user make
> some selections. When the user makes a selection, the selected rows
> are highlighted in 'Blue'.
>
> Now, my application is such that the user can use the 'Tab' key to
> move to different components on his screen, after making the
> selection. When he does so, the 'Blue' color of the selected rows goes
> away and the user cannot see his selection in the TListView in 'Blue',
> because the TListView is not the object of focus.
>
> Question is: How to alow the user to see his selection on a component
> that is not currently focussed? (i.e.) How to retain the 'Blue' color
> on the user selections in the TListView?


Ask this question on one (or more) of the newsgroups with VCL in the name
on the news://newsgroups.borland.com newsserver.

TListView or any other VCL class is not a part of standard C++, hence your
question is not topical here.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl


 
Reply With Quote
 
velthuijsen
Guest
Posts: n/a
 
      04-21-2004
> We use a TListView component in C++ Builder to enable the user make
> some selections. When the user makes a selection, the selected rows
> are highlighted in 'Blue'.
>
> Now, my application is such that the user can use the 'Tab' key to
> move to different components on his screen, after making the
> selection. When he does so, the 'Blue' color of the selected rows goes
> away and the user cannot see his selection in the TListView in 'Blue',
> because the TListView is not the object of focus.
>
> Question is: How to alow the user to see his selection on a component
> that is not currently focussed? (i.e.) How to retain the 'Blue' color
> on the user selections in the TListView?
>
> Thanx in advance



Use the OnExit event to write a function that keeps the listitems that
are selected blue.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where's a DOM builder that uses the Builder Pattern to ... buildDOMs? Phlip Python 5 01-13-2010 12:48 PM
this.window.focus() vs. window.focus() vs. this.focus() Roger Javascript 3 03-08-2007 08:53 PM
VS.NET Just Goes Away Tina ASP .Net 4 06-20-2005 06:25 PM
Mouse goes away Al Computer Support 3 05-11-2004 04:59 AM
Recognizing when a Socket connection goes away. Steve. Java 2 02-04-2004 12:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57