trichview.com

trichview.support




Re: 2 RichviewEdits at the same time


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/09/2002 21:45:43


How do you copy one editor to another?


The most universal way is:


var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

sourcerv.SaveRVFToStream(Stream, False);

Stream.Position := 0;

destrv.LoadRVFFromStream(Stream);

Stream.Free;

destrv.Format;


Both richeditors must be

1) either linked to the same RVStyles (or to the compatible RVStyles - with

the same collections of styles)

2) or they must be linked to different RVStyles, and styles are saved with

RVF (right click one editor, choose Settings in the context menu, select

"Allow adding styles dynamically". Repeat with the second editor)


PS: You cannot assign value to RVData


> I'm trying out the trail-version that is on the companion CD of Delphi 7.

>

> I have two TRichViewEdits on a form. I copy the .RVData from one to

another

> and call the Format method of the latter.

>

> It doesn't seem to get updated. And when I drag the cursor over the copied

> one, the text in the first one gets selected.

>

> Any tips welcomed,

>

> Roland

>

>

>





Powered by ABC Amber Outlook Express Converter