Style Templates

General TRichView support forum. Please post your questions here
Post Reply
wvd_vegt
Posts: 83
Joined: Tue Aug 30, 2005 7:39 am

Style Templates

Post by wvd_vegt »

Hi

Is there a demo of how to use Style Templates?

I want to restrict the user to use only predefined styles preferable stored outside the program in for example an ini file.
Sergey Tkachenko
Site Admin
Posts: 17254
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

StyleTemplates are reserved for future use.

As for limiting a set of styles, right click the editor, choose "Settings" in the popup menu, select "Use a predefined set of styles".
After that, new styles will not be created when inserting/pasting RTF and RVF files. So, if you application does not have commands which add new styles, new styles will never be added in documents.
wvd_vegt
Posts: 83
Joined: Tue Aug 30, 2005 7:39 am

Post by wvd_vegt »

Hi,

Can this be done at designtime too (through the inspector?)
Sergey Tkachenko
Site Admin
Posts: 17254
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, the sequence I described must be done at design time.
You can change properties in the Object Inspector, but using a component editor ("Settings" in the context menu when you right click TRichView in Delphi) is simpler.
Post Reply