trichview.com

trichview.support




Re: Change the color of the text please !


Return to index


Author

Message

Yernar FoxTail

Posted: 12/02/2002 15:10:19


RichViewEdit.Color is the background color, of course.

To change the color of the text you may use two ways:

1) you may change the color of the text style.

For example:

  if ColorDialog1.Execute then begin

    RVStyle1.TextStyles[0].Color:=ColorDialog1.Color;

    RichView1.Format;

  end;


2) The second way is to use ApplyStyleConversion method. This is an editing-style

method.


"visitorrr" <static-toad@ifrance.com> wrote:

>

>I do this:

>  ColorDialog1.Execute;

>  FormeCourrante.RichViewEdit1.Color := ColorDialog1.Color;

>  FormeCourrante.RichViewEdit1.SetFocus;

>But with this code, it's the background who change color !

>How to change the color of the text in RichViewEdit ?

>Thank you !





Powered by ABC Amber Outlook Express Converter