Solved

changing the color of a list view

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Should CArray be used for a list of pointers in C++? 19 115
sorting efficency of sorting algorithm 30 121
gdb doesn't stop on breakpoint 2 92
VS2015 Redefinition errors 4 67
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

808 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