473,413 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

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

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
Jul 22 '05 #1
3 3391

"arun venkatesan" <ar*******@yahoo.com> wrote in message
news:a2**************************@posting.google.c 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
Jul 22 '05 #2
"arun venkatesan" <ar*******@yahoo.com> wrote in message
news:a2**************************@posting.google.c 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
Jul 22 '05 #3
> 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.
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Ziggi | last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's solution or Borland's. Could any kind folks detail the relative strength and weaknesses of both, and also tell me which...
1
by: Annette Massie | last post by:
I would like to have a form that lists current addresses being used. On this form I would also like to have a command button that would allow the user to add an address if they do not see it...
5
by: (Pete Cresswell) | last post by:
I've got a TreeView on the left of my screen. As the user navigates the tree, I load corresonding detail info into the rest of the screen. Works ok, but when the user clicks on a detail field,...
4
by: Brian Barnes | last post by:
I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it...
0
by: Ken Dopierala Jr. | last post by:
Hi, When I change properties through the property window on my custom control and then move focus from that property cell VS.Net runs the GetDesignTimeHtml() method on my designer. When I...
1
by: Lamine Darbouche | last post by:
Please Help, I have a form with multiple buttons "New User", "Delete User", "Save" buttons, when I access the form it selects the "New User" button by default, so when you hit the return key...
0
by: sales | last post by:
I am glad to present to the community of this group the new version of our component intended for visual building of SQL queries via an intuitive interface - Active Query Builder...
1
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies...
2
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi all! I have one combobox, two grids and nine textbox. All textbox are tab index one following another. When I press tab I go to the next textbox. How can I known if I click on another...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.