trichview.com

trichview.support




Re: Delete color style information from text


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/16/2003 22:29:03


The only idea that I can suggest - load copied document to some temporal

invisible RichView (linked to unique RVStyle), change color to the desired

color (for i := 0 to rvstyle.textstyles.count-1 do

rvstyle.textstyles[i].Color := newcolor, where rvstyle is a TRVStyle

component linked to this invisible RichView), then copy it back to stream

and then insert.


>

> Hello,

>

> in my project I have certain "template files" which are opened with a

TRichViewEdit.

> In this file there are my own "Tags" (e.g. "{description}"), which are

searched

> and replaced which actual texts. I do this with

RichViewEditor.InsertRVFFromStreamEd,

> because the text that is inserted can contain certain text or paragraph

styles

> as well. These styles are bold, italic, some list styles, but never the

font

> name, size or color. Those values should always be "default".

>

> I have a template editor, which alloes me to edit the texts, set certain

> text ar paragraph attributes.

> Now I could for example set the font color of "{description}" to clWhite.

> But when I insert the RVF stream, the font color always changes to black,

> because this seems to be stored inside the RVF stream. I tried setting the

> color of the RVF text that will be inserted to clNone, but that doesn't

work.

> How can I insert a text with certain attributes, but without font name,

color

> or size?

>

> Regards,

>

> Christian Kirchhoff





Powered by ABC Amber Outlook Express Converter