embedding custom content in a trichview document

General TRichView support forum. Please post your questions here
Post Reply
costa
Posts: 3
Joined: Tue Jan 20, 2015 2:12 am

embedding custom content in a trichview document

Post by costa »

Hello:

Could you please tell me if it is possible to embed a window in a document?

Let's say I want to place a grid or some other control, possible, a FireMonkey form. Is it doable? I would take care of serializing the embedded window data to/from the document, and of course of the display.

This would work much like the microsoft ole stuff that allows you to embed other documents or artifacts inside a document.

Thanks
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can insert a Delphi component in TRichView document, and this component can be saved with a document in RVF format (published properties are stored). For RTF, HTML and DocX you can write your own code for storing components, OnSaveComponentToFile event.
You can find examples in
Demos\DelphiUnicode\Tutorial\1 Building a Document\4 Controls
Demos\DelphiUnicode\Editors\Editor 1 ("Insert" menu).

However, TRichView is VCL component, and it supports insertion of VCL components, not FireMonkey.
Post Reply