trichview.com

trichview.support




Re: Default Text style


Return to index


Author

Message

Chia Chen Yap

Posted: 04/02/2004 15:41:24


Hi,


1. If TRichViewEdit is created at runtime, will the mentioned properties

being set by default?


2. Since each rve requires a new rvs, then my rvs has be created during

runtime too. When the rvs is assigned to the rve, how can I overwrite the

text styles which created by default when rvs is created? For example, rve1

has text styles[0] with bold font while rve 2 has text styles[0] of italic

font. Since rvs will have default text styles being created when the

component is created, what should I do to change it base on the rve loaded?


Regards,

CY


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:406c4613$1@support.torry.net...

> 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" <cychia@chrysanth.com> wrote in message

> > news:406ba968@support.torry.net...

> > > 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