Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Theme Office2013 - Group caption font
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Theme Office2013 - Group caption font

 Post Reply Post Reply
Author
Message
minione View Drop Down
Newbie
Newbie


Joined: 24 March 2016
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote minione Quote  Post ReplyReply Direct Link To This Post Topic: Theme Office2013 - Group caption font
    Posted: 06 September 2017 at 8:51am
Hello,

after changing the theme from Office2007 to Office2013, I cannot set the font property (Font name, size, bold) of the caption text in ribbon group any longer.

RibbonBar.RibbonPaintManager.CaptionFont.Name = "Verdana"
RibbonBar.RibbonPaintManager.CaptionFont.Size = 10
RibbonBar.RibbonPaintManager.CaptionFont.Bold = True
RibbonBar.RecalcLayout



I'm using Xtreme SuitePro ActiveX 18.0.1 and VB6 IDE.

Does anyone have any idea how to make this work?

Thanks very much

Max
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2017 at 3:21pm
Hello Max,

This happens because markUp Ribbon's themes  (Office2013, 2016, VS2012, VS2015)  don't use RibbonBar.RibbonPaintManager.CaptionFont  to change font. This variable used only for Resource ribbon themes like Office2007 and 2010.

I can't fix this because markup themes use different drawing system which independent from resource themes.

You can try edit XAML files  (RibbonGroupNormal.xaml, RibbonGroupHighlighted.xaml) in Office2013.dll
<Grid xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
    <Border Margin='0,4,0,4' BorderThickness='0,0,1,0' BorderBrush='{x:Static Theme.Colors.GroupNormalBrush}' />

    <Grid VerticalAlignment='Bottom'>
        <TextBlock x:Name='CaptionText' Margin='0,1,0,3' FontFamily='Segoe UI' FontSize='11' FontQuality='ClearType' TextAlignment='Center' TextTrimming="CharacterEllipsis">Caption</TextBlock>
    </Grid>
</Grid>


Regards,
 Oleksandr Lebed

Back to Top
minione View Drop Down
Newbie
Newbie


Joined: 24 March 2016
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote minione Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2017 at 4:59am
Hi Oleksandr,

Thank you very much for your reply.

I have decided to stay with the current Resource ribbon theme Office2007 which means less effort for me. Anyway, I will try your tips as well.

Regards,
Max
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.