Edit Applications Demo
Folder: Demos\EditAppDemos.
Shows how to use TSynEdit to build editor applications in three styles:
| Project | Style |
|---|---|
EditAppSDI.dpr | SDI: one window for each document. |
EditAppMDI.dpr | MDI: the documents are child windows of the main form. |
EditAppWorkbook.dpr | Workbook: the documents are the pages of a page control. |
How it is built
The applications use interfaces (unit uEditAppIntfs) to hide the implementation details. This is useful when the application has other types of sub-forms that must respond to the same menu and toolbar commands: each sub-form defines internally which commands it handles and how, so the main form needs not to change when a new type of sub-form is added.
| Unit | Content |
|---|---|
frmMain, frmMainSDI, frmMainMDI, frmMainWorkbook | The main form of each style. |
frmEditor | The form of an editor, shared by the three styles. |
dmCommands | Data module with the actions, the images and the shared components. |
uEditAppIntfs | The interfaces between the main form and the sub-forms. |
