Autor Beitrag
Blackmix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: So 30.03.03 00:45 
Ich möchte einen String, der schon im RTF Format ist, in ein RichEdit zu kopieren? Im Prinzip klappt das ja mit RichEdit.Lines.Text:=myString; doch die ganzen Formatierungen gehen verloren, die sich im String befinden.

Wie schaffe ich es nun einen RTF formatieren String einem RichEditMemo so zu zuweisen, dass man im RichEdit auch die Formatierungen sieht??
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: So 30.03.03 01:19 
Du kannst einen Umweg über die Lines.LoadFromStream Methode gehen.

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var
  Stream: TStringStream;
begin
  Stream := TStringStream.Create( myString );
  try
    RichEdit1.Lines.LoadFromStream(Stream);
  finally
    Stream.Free;
  end;

_________________
Ist Zeit wirklich Geld?
Blackmix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: So 30.03.03 02:50 
VIELEN DANK :beer: !
Es funktioniert. Ich hättet das gar nicht gedacht!