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

A

arun venkatesan

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
 
S

Sharad Kala

arun venkatesan said:
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-lite/how-to-post.html#faq-5.9
 
P

Peter van Merkerk

arun venkatesan said:
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.
 
V

velthuijsen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top