Font in Demo ActionTestTabs

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
Gwiasda
Posts: 11
Joined: Mon Feb 16, 2015 3:15 pm

Font in Demo ActionTestTabs

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Gwiasda
Posts: 11
Joined: Mon Feb 16, 2015 3:15 pm

ActionTestUni Demo

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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).
Gwiasda
Posts: 11
Joined: Mon Feb 16, 2015 3:15 pm

Post by Gwiasda »

Thank you,
it’s works now fine.
Post Reply