Is it ok to use "StyleTemplateId"

General TRichView support forum. Please post your questions here
Post Reply
Hanno
Posts: 22
Joined: Sun Mar 05, 2006 12:28 pm

Is it ok to use "StyleTemplateId"

Post by Hanno »

I need to use an extra property in TFontInfo, and I see that this property, StyleTemplateId, is one I do not recognise. Is it ok if I use it or will you be using it for something else in the future?
MLefebvre
Posts: 191
Joined: Mon Aug 29, 2005 4:28 pm
Location: France
Contact:

Post by MLefebvre »

Hanno,
I think that you should avoid using this property now, RV is preparing something great to handle style families, and given its name this property is certainly dedicated to that ...
Sergey Tkachenko
Site Admin
Posts: 17604
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

How do you plan to use it?
It does nothing currently :)
Hanno
Posts: 22
Joined: Sun Mar 05, 2006 12:28 pm

Post by Hanno »

I let my users manage a list of styles and I identify those styles based on their attributes, i.e. the TFontInfo properties. I use the StyleName at runtime only. I can't use it normally because it is a string and I need to show the style name as a WideString, so I manage this separately. But some users use the same style attributes in duplicate styles, so I need a way to uniquely identify them other than using the StyleName. So I was thinking of using an integer as a unique id.
Sergey Tkachenko
Site Admin
Posts: 17604
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Well, StyleTemplate properties will not be removed in future updates, so you can use them.
Post Reply