Solved

changing the color of a list view

Posted on 2002-05-31
4
271 Views
Last Modified: 2010-04-02
Hi there,
How would I go about altering the color of a specific list view enty in a box in 'detail' mode.
I'm using BCB4 but it does not have a font param for individual entries. (TListView)
Thanks in advance
DS
0
Comment
Question by:dsch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 50 total points
ID: 7048638
You must use custom listview and react to
OnCustomDrawSubItem event or trap NM_CUSTOMDRAW event.
Example of last dee in
http://delphi.mers.com/cgi-bin/mer.exe/EXECSEARCH?pageno=1&searchtext=color+listview+item&grouptext=cppbuilder&linktype=viewmsg&msgno=26592&boardno=1820
0
 
LVL 1

Author Comment

by:dsch
ID: 7049300
Thank Alex, I will take a good look.
Kind Regards
David
0
 
LVL 11

Expert Comment

by:griessh
ID: 7260242
Dear dsch

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "AlexVirchovsky"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7332864
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question