Page 1 of 1
Is it ok to use "StyleTemplateId"
Posted: Fri Mar 24, 2006 5:12 pm
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?
Posted: Fri Mar 24, 2006 6:46 pm
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 ...
Posted: Fri Mar 24, 2006 7:28 pm
by Sergey Tkachenko
How do you plan to use it?
It does nothing currently
Posted: Fri Mar 24, 2006 7:39 pm
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.
Posted: Sat Mar 25, 2006 10:38 am
by Sergey Tkachenko
Well, StyleTemplate properties will not be removed in future updates, so you can use them.