|
Viewer vs Editor |
Top Previous Next |
|
Methods of TRichView TRichView has the following 3 groups of methods for modifying documents:
Examples of the first group are: AddNL, AddPictureEx, LoadRTF. Examples of the second group are SetPictureInfo, SetItemText. Examples of the third group are: LoadRVF, LoadRTFFromStream. All these methods have the following characteristics:
You need to call Format (or FormatTail) to display documents created or modified with such methods. Table cells also have such methods. Methods of TRichViewEdit TRichViewEdit has the following groups of methods for modifying documents:
Methods of the group 1 are referred as viewer-style methods, methods of the groups 2-4 are editor-style methods. All these methods (except for the methods of the group 1, inherited from TRichView) have the following characteristics:
In editor, the main application of the methods of the group 1 is generating new documents from scratch (after calling Clear). The main application of other methods is performing user commands. They should not be used for generation of new document (because each such method updates documents, it can cause undesirable flicker, and they are much slower). Important: You must not mix methods of group 1 and methods of groups 2-4! Methods inherited from TRichView do not update undo and redo buffers, and results of undo and redo commands will be unpredictable! The only applications of methods of the group 1 is generating a new document, in the sequence:
See also: Undo in tables |