trichview.com

trichview.support




Re: Modify the Styles at runtime


Return to index


Author

Message

Benedikt Weber

Posted: 06/17/2002 21:29:03


Thanks alot for all this support. This is really very helpful.


Benedikt


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

news:3d0e3117@support.torry.net...

> Yes, you can assign TFont to text style.

> But you need to call RichViewEdit1->Format() if text of this style is

> already in the document.

>

> > Ok, I can use the regular FontDialog and Assign:

> >

> >     FontDialog1->Font = Form1->Font;

> >     if (FontDialog1->Execute())

> >         RVStyle1->TextStyles->Items[0]->Assign(FontDialog1->Font);

> >     RichViewEdit1->SetFocus();

> >

> > Benedikt

> >

> >

> > "Benedikt Weber" <weber@ggaweb.ch> wrote in message

> > news:3d0e16d6$1@support.torry.net...

> > > I want to define Styles for categories of text like Title, Body, Table

> > Cell.

> > > The problem is how to modify the Styles at runtime. How can I call the

> > > FontDialog and assign the result to TextStyle?

> > >

> > > Can I call the FontDialogs that are used in Actions at all. Are they

> > > implemented with the RichViewMisc Components? So I should perhaps make

> my

> > > own dialog using those?

> > >

> > > Benedikt

> > >

> > >

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter