This demo shows how to use TDBSRichViewEdit.
This is a WYSIWYG text processor application which edits documents in a database.
Download: https://www.trichview.com/support/files ... ontest.zip
This demo is based on the ScaleRichView\Demos\ActionTestTabs\ demo.
Changes:
- TSRichViewEdit is replaced by TDBSRichViewEdit;
- TDBEdit is added (to edit a title field);
- TDBNavigator is added;
- tabs are removed, only one document can be edited at the same time;
- file-related actions (Open, Save, SaveAs) are removed; TrvActionNew is used in a hidden mode (to reset properties of new documents)
This demo uses FireDAC and InterBase database (created in InterBase 2017) but can be easily modified to use other DB access components.
New code is at the end of the main form's unit:
- DataSource1.OnDataChange to display the current record in the status bar;
- DBSRichViewEdit1.OnNewDocument to reset properties of new documents;
- FDTable1.AfterScroll to update rulers after switching records.
[ScaleRichView][Demo] DB ScaleRichView
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: