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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One text with several font colors 1

Status
Not open for further replies.

kristof

Programmer
Jun 2, 2000
234
BE
Hi all!

Is it possible to have one text, (eg. within a memo), have several font colors? I would like to be able to change the color of at least each line separatly or even better any amount of chars on the same line.

(The principle would be close to the TGML layout tags used on these forums).

So, I wish to be able to make any line look like this.

Thx,

Kristof
 
Hi Kristof
I think you need to be using a 'RichEdit' rather than a 'Memo', then do an F1 on it and look at the 'SelAttributes' property there is an example which will show you how to use this to change the text colour.

Steve.
 
Yep, sorry, that's right, you need a Rich Edit rather than a Memo.

lou
 
Hi guys,

Thanks for the info, I'll check it out.

Gtz,

Kristof
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top