Font in Demo ActionTestTabs

Public forum for discussing TScaleRichView (shareware addon to TRichView providing WYSIWYG editing)
Post Reply
Gwiasda
Posts: 11
Joined: Mon Feb 16, 2015 3:15 pm

Font in Demo ActionTestTabs

Post by Gwiasda » Mon Feb 16, 2015 3:39 pm

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: 13467
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Tue Feb 17, 2015 7:59 am

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 » Wed Feb 18, 2015 7:56 am

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: 13467
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Wed Feb 18, 2015 8:35 am

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 » Wed Feb 18, 2015 1:45 pm

Thank you,
it’s works now fine.

Post Reply