Table of Contents

Getting Started with TMS FNC Rich Editor RTF IO

TTMSFNCRichEditorRTFIO is a non-visual component that adds RTF import and export to TTMSFNCRichEditor. It runs on Windows (Win32/Win64). Drop it on the form, connect it to an editor instance, and call Load or Save.

Prerequisites

  • Delphi with TMS FNC UI Pack installed.
  • A VCL or FMX application targeting Windows.
  • A TTMSFNCRichEditor on the same form.

Design-time setup

  1. Drop a TTMSFNCRichEditor onto a form.
  2. Drop a TTMSFNCRichEditorRTFIO onto the same form.
    The component auto-detects the first TTMSFNCRichEditor on the form and links itself automatically. If you have multiple editors, assign RichEditor explicitly.
  3. Wire save and load buttons in the Object Inspector:
procedure TForm1.ButtonSaveClick(Sender: TObject);
begin
  TMSFNCRichEditorRTFIO1.Save('document.rtf');
end;

procedure TForm1.ButtonLoadClick(Sender: TObject);
begin
  TMSFNCRichEditorRTFIO1.Load('document.rtf');
end;

Explicit wiring (multiple editors)

When the form contains more than one editor, assign RichEditor explicitly:

TMSFNCRichEditorRTFIO1.RichEditor := TMSFNCRichEditor2;

Next steps