trichview.com

trichview.support




Re: Change style of selection


Return to index


Author

Message

Mamouri

Posted: 05/20/2003 16:18:48


There is anothor solution too:

At first copy all content of RichView to a hiddent TRichViewEdit using

AppendFrom. Then sellect the word that user was selected in Richview in code

and then use ApplyTextStyle. finally Clear RichView and use AppendFrom again

to appen RichViewEdit content to RichView!

It work well But I take more resource and it need more time!


And you can use of RichViewEdit in case you dont have jump in your document.

bacause RVE dont change cursor of jumps! You can set ReadOnly property of

RVE so user cant edit!


Regards



"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> Yes, you need to iterate selected items and change their style as in

Yernar

> code.

>

> > As I know, there are no methods to change style of part of text item in

> > TRichView.

> >

> > You can call

> > rv.GetItem(ItemNo).StyleNo := NewStyleNo;

> > rv.Format;

> >

> > where ItemNo is an index of text item to change.

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter