Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memo Text Display

Status
Not open for further replies.

caophong

Programmer
Oct 4, 2002
4
US
Hi,

I display strings of text in a Memo. I want to display each line of text string is a different color. how do i do that? I did it but everytime I change the color of the font, it changes the color of all fonts in the memo changes. But i want to alternate the font color.

this is string 1 // Red color font
this is string 2 // Yellow color font
this is string 3 // Red color font
this is string 4 // Yellow color font

Is there any one have any idea?

Thank you.
 
Hi,

Thanks Wing. Using the TCanvas is an idea. But is there other way that we can assign color to text? Using Rich text?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top