Frequently Asked Component Specific Questions
Options |
|
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>

TMS FMX UI PackTTMSFMXRichEditor: How to copy content from one RichEdit to another RichEdit
It is very easy to copy the contents of a TTMSFMXRichEditor 1:1 matching to another TTMSFMXRichEditor instance with following code snippet:
var
ms: TMemoryStream;
begin
ms := TMemoryStream.Create;
try
TMSFMXRichEditor1.SaveToStream(ms);
ms.Position := 0;
TMSFMXRichEditor2.LoadFromStream(ms);
finally
ms.Free;
end;
end;