Page 1 of 1

[Demo] Working with a fixed set of styles

Posted: Sun Dec 21, 2008 3:46 pm
by Sergey Tkachenko
http://www.trichview.com/support/files/fixedstyles.zip

A very simple demo showing how to work with a fixed set of text and paragraph styles.
The main setting in this demo: right click RichViewEdit1 in Delphi, choose "Settings" in the popup menu. You will see that mode is "Use a predefined set of styles".

This demo uses a fixed set of text and paragraph styles. You can load or paste RTF file in the demo, you will see that RTF formatting will be converted to the most similar available style.
The only way of modifying formatting in this demo is changing some style font's using "Edit Style" button.
Changes are not saved in this demo. You can save styles using RVStyle1.SaveINI or RVStyle1.SaveReg methods.