WPTools strictly separates the text data structures from the output logic. This makes it possible to show the same text using an editor and a preview component. Even more impressive is the possibility to edit the same text using different editors!
The multiview technology cannot only be used to implement a splitscreen feature, it can be the solution edit the a text path:
This means that different editors are set up to each edit one part of the document. When the cursor leaves one box it is automatically moved to the next or previous box. Text which scrolls out of the first editor scrolls into the next box etc. Since all the involved editors work with one text there is no danger to loose information when text scrolls out or in. No text is actually copied in this case, just the view window is changed.
Several Editor may uses the same RTFProps object, that is the owner of the style catalogue.
- If two editors use a different RTFProps object and a style is changed in the first, the text which uses the same style will be also updated in the second editor. This is ideal if you need to create one big text out of several pieces.
- Since font and color tables are shared the same font or color uses the same index value in all editors which use the same RTFProps object
- This feature can help to reduce the amount of memory required for each text.