[Demo] Editors in editors

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 15555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Demo] Editors in editors

Post by Sergey Tkachenko »

This demo shows how to insert TRichViewEdit in TRichViewEdit.
Documents with inserted RichViewEdits can be saved in RVF files.

http://www.trichview.com/support/files/subeditors.zip

Minimal required Delphi version: 6
jgkoehn
Posts: 133
Joined: Thu Feb 20, 2020 9:32 pm

Re: [Demo] Editors in editors

Post by jgkoehn »

If I save the TRichViewEdit to file as a RVF it should be able to up in another TRichView Editor correct?

RichViewEdit1.SaveRVF('InterlinearTest.rvf', False); or do I need to do something a bit different?
Sergey Tkachenko
Site Admin
Posts: 15555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: [Demo] Editors in editors

Post by Sergey Tkachenko »

Yes, of course. Use SaveRVF to save and LoadRVF+Format to load.

RegisterClasses([TSubRichViewEdit]) must be called before loading, if RVF document can contain TSubRichViewEdit controls.
jgkoehn
Posts: 133
Joined: Thu Feb 20, 2020 9:32 pm

Re: [Demo] Editors in editors

Post by jgkoehn »

Ah excellent I thought as much that I must be missing just a little something. Thanks for the info about Register class
Post Reply