Solved

changing the color of a list view

Posted on 2002-05-31
4
258 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now