trichview.com

trichview.support




Re: Changing styles


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/11/2003 11:54:03


> "hhe" <[email protected]> wrote:

> >1: Is it possible to assign a new rvstyle to a richviewedit at runtime.

>

> I believe yes:

> rve.Style := rvs

>

> where rve: TRichViewEdit, rvs: TRVStyle



Yes, but you need to be careful if rve already contains non empty document:

in this case old and new RVStyles must have compatible set of styles.

There is no problem is the document is empty (Clear was called, or document

was not created/loaded)







Powered by ABC Amber Outlook Express Converter