trichview.com

trichview.support




Re: Default Text style


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/01/2004 19:31:32


You can use one RVStyle object for several RichViews only if you use a

predefined set of styles (or, if you modify, you accept that changes occur

in all RichViews).


So in you case you should use one RVStyle per editor.

Right click each editor, choose "Settings" in the context menu and make sure

that the option "Allow adding styles dynamically" is chosen. With this

option, styles are saved and loaded together with document text in RVF

files.




> If creating new rvs to each rve is the only solution, what should I do

when

> evrytime load back the document after closing it so that correct rvs is

> assigned to it?

>

>

> "Chia Chen Yap" <[email protected]> wrote in message

> news:[email protected]...

> > I have more than I TrichViewEdit running at the same time where each of

> them

> > consist of their own default text style.

> >

> > My scenario is , I will allow users to set a default font type and size

> > where everytime a new rve is created the selected font type will be used

> as

> > default. But currently I only have a rvs to share among those rve. If I

> > change the rvs.TextStyles[0] to the selected font type, all other

> documents

> > with the the text style[0] will change the font type too. How can I

solve

> > this problem? Do I need to created a new rvs for each newly created rve?

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter