Page 1 of 1

Font in Demo ActionTestTabs

Posted: Mon Feb 16, 2015 3:39 pm
by Gwiasda
In this demo is the default font Arial. How can I set the default font for example to Calibri? In the designer or in the code.

Posted: Tue Feb 17, 2015 7:59 am
by Sergey Tkachenko
If you use StyleTemplates (like in the ActionTest demo), set the font for 'Normal' style template in rvActionNew.StyleTemplates

If StyleTemplates are not used, change the font for TextStyles[0] in TrvActionNew.OnNew event (the link contains an example code)

ActionTestUni Demo

Posted: Wed Feb 18, 2015 7:56 am
by Gwiasda
Thanks for your answer,
I have in the ActionTestUni Demo in then unit „dmActionsSRVAlpha“ in the „Actionlist1“ „rvActionNew1.StyleTemplates“ Normal found. In the property „Textstyle“ I change the Fontname to Times New Roman. But in the application appears ever Arial. What is wrong?
Neither modification appears in the application.

Posted: Wed Feb 18, 2015 8:35 am
by Sergey Tkachenko
Include rvfiFontName in ValidTextStyleProperties of this style template.
Properties not listed in ValidTextStyleProperties are ignored (inherited from the parent style, or (if no parent, like in the case with 'Normal') default values are used).

Posted: Wed Feb 18, 2015 1:45 pm
by Gwiasda
Thank you,
it’s works now fine.