BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TListView Change Font Color

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
g
Guest





PostPosted: Mon Aug 02, 2004 9:25 am    Post subject: TListView Change Font Color Reply with quote




Hi, I have the code here:

TListItem *newItem;
ListView->Items->BeginUpdate();
newItem = ListView->Items->Insert(0);
newItem->Caption = "A";
newItem->SubItems->Add("B");
newItem->SubItems->Add("C");
ListView->Items->EndUpdate();

How can I change the color of "C" into RED?

ListView ->Items->Item[0]->SubItems->Strings[1] = "C";

Best regards and Thx
Grace
Back to top
Andrue Cope [TeamB]
Guest





PostPosted: Mon Aug 02, 2004 9:54 am    Post subject: Re: TListView Change Font Color Reply with quote



g wrote:

Quote:
How can I change the color of "C" into RED?

Wrong newsgroup section. .ide is so named because it deals with
questions relating to the IDE (Editor, debugger etc). Questions such as
yours that relate to using VCL components should be posted into
..vcl.components.using

FWIW you will probably need to take care of drawing the component
yourself so check out the help for OnDrawItem. For further questions I
have set follow-up to .vcl.components.using

--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.