
(*
 Delphi Object and Component Reference
#{bmc bm10.BMP} PlainText, LoadFromFile example
This example requires two TRichEdit controls placed on the form.
When the form becomes visible, the first Rich Edit control will display the rich text in its raw form, including formatting characters. The second will show the rich text in its intended format.
*) 
procedure TForm1.FormCreate(Sender: TObject);
const
  // you may need to change this path to suit your environment
  Path = '..\Demos\RichEdit\OverView.RTF';
begin
  RichEdit1.PlainText := True;
  RichEdit1.Lines.LoadFromFile(Path);
  RichEdit2.PlainText := False;
  RichEdit2.Lines.LoadFromFile(Path);
end;
 
