<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Changing the Ribbon Bar Font</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Changing the Ribbon Bar Font]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 13:19:39 +0000</pubDate>
  <lastBuildDate>Fri, 12 Dec 2008 14:04:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=9161</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : Hi, Sorry - our thing. Will be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43621&amp;title=changing-the-ribbon-bar-font#43621</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 12 December 2008 at 2:04pm<br /><br />Hi,<DIV>Sorry - our thing. Will be added to Source\Ribbon\Includes.h </DIV>]]>
   </description>
   <pubDate>Fri, 12 Dec 2008 14:04:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43621&amp;title=changing-the-ribbon-bar-font#43621</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : OK, thanks, that works. One note,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43604&amp;title=changing-the-ribbon-bar-font#43604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 12 December 2008 at 8:39am<br /><br />OK, thanks, that works.&nbsp; One note, though: I normally only include Source\XTToolkitPro.h, but doing that only got me a forward declaration of CXTPRibbonPaintManager.&nbsp; I had to include Ribbon\XTPRibbonPaintManager.h to get the full declaration I needed to access members of the class.&nbsp; Is that to be expected?&nbsp; Is this a public class?<DIV></DIV>]]>
   </description>
   <pubDate>Fri, 12 Dec 2008 08:39:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43604&amp;title=changing-the-ribbon-bar-font#43604</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : Hi,   Yes, sorry CXTPRibbonPaintTheme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43595&amp;title=changing-the-ribbon-bar-font#43595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 12 December 2008 at 1:12am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Yes, sorry CXTPRibbonPaintTheme and CXTPRibbonPaintMaanger are different classes now.</DIV><DIV>&nbsp;</DIV><DIV>Please change to</DIV><DIV>&nbsp;</DIV><DIV>pPaintManager-&gt;<strong>GetRibbonPaintManager</strong>()-&gt;GetTabPaintManager()-&gt;SetFontIndirect</DIV>]]>
   </description>
   <pubDate>Fri, 12 Dec 2008 01:12:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43595&amp;title=changing-the-ribbon-bar-font#43595</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : I just upgraded from 12.0.1 to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43585&amp;title=changing-the-ribbon-bar-font#43585</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 11 December 2008 at 5:40pm<br /><br />I just upgraded from 12.0.1 to 12.1.1, and the code generated from this thread won't compile:<DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOGFONT lfDialogFont = ...</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // The Codejock calls below to change the font will alter the font structure<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // passed to them, so make a fresh copy of the font data for each call.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOGFONT lfTab = lfDialogFont;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOGFONT lfGroup = lfDialogFont;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOGFONT lfButtons = lfDialogFont;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // tab captions (per Oleg)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPaintManager-&gt;GetTabPaintManager()-&gt;SetFontIndirect(&amp;lfTab);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // group captions (per Oleg)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPaintManager-&gt;m_fontGroupCaption.SetCustomFont(&amp;lfGroup);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // ribbon text (buttons, QAT, etc)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPaintManager-&gt;SetCommandBarsFontIndirect(&amp;lfButtons);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // tell Codejock about the changes &#091;PR5917116&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPaintManager-&gt;RefreshMetrics();<BR></DIV><DIV>I get these errors:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; ribbon.cpp(2553) : error C2039: 'GetTabPaintManager' : is not a member of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; source\ribbon\xtpribbontheme.h(47) : see declaration of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(2553) : error C2227: left of '-&gt;SetFontIndirect' must point to class/struct/union/generic type<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(2556) : error C2039: 'm_fontGroupCaption' : is not a member of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; source\ribbon\xtpribbontheme.h(47) : see declaration of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(2556) : error C2228: left of '.SetCustomFont' must have class/struct/union<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(11375) : error C2039: 'GetTabPaintManager' : is not a member of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; source\ribbon\xtpribbontheme.h(47) : see declaration of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(11375) : error C2227: left of '-&gt;GetFont' must point to class/struct/union/generic type<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(11390) : error C2039: 'm_fontGroupCaption' : is not a member of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; source\ribbon\xtpribbontheme.h(47) : see declaration of 'CXTPRibbonTheme'<BR>&nbsp;&nbsp;&nbsp; ribbon.cpp(11390) : error C2228: left of '.SetCustomFont' must have class/struct/union</DIV><DIV><BR>&nbsp;</DIV><DIV>What's up with that?&nbsp; Is there some other way to change the fonts now?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 11 Dec 2008 17:40:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=43585&amp;title=changing-the-ribbon-bar-font#43585</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : One last followup for posterity....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=34228&amp;title=changing-the-ribbon-bar-font#34228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 25 April 2008 at 10:19am<br /><br />One last followup for posterity.&nbsp; I was having trouble with characters getting clipped until I added a call to pPaintManager-&gt;RefreshMetrics(); after the call to pPaintManager-&gt;SetCommandBarsFontIndirect().&nbsp; That is, the tails on characters like y or g were getting clipped when I had multiline text on large buttons, and the tops of some Japanese characters were getting clipped in that locale.<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 25 Apr 2008 10:19:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=34228&amp;title=changing-the-ribbon-bar-font#34228</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : Ah, I figured out what was going...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29712&amp;title=changing-the-ribbon-bar-font#29712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 21 December 2007 at 5:19pm<br /><br />Ah, I figured out what was going on.&nbsp; The SetFontIndirect call actually overwrites data in the LOGFONT structure that I pass in while it is fiddling with its internally held vertical font.&nbsp; When I pass that along to the next guy, it causes the text to rotate.<DIV>&nbsp;</DIV><DIV>While I consider this a corruption of my data, and a little bit rude, I have worked around this by just making three copies of the LOGFONT and passing a unique one to each API.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 21 Dec 2007 17:19:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29712&amp;title=changing-the-ribbon-bar-font#29712</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : I am assuming that you mean CXTPRibbonTheme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29703&amp;title=changing-the-ribbon-bar-font#29703</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 21 December 2007 at 10:48am<br /><br /><FONT face="Verdana, Arial, Helvetica, sans-serif" size=3><FONT size=2>I am assuming that you mean CXTPRibbonTheme rather than CXTPRibbonPaintManager.&nbsp; The call to m_fontGroupCaption.SetCustomFont seems to work fine.&nbsp; The call&nbsp;to GetTabPaintManager()-&gt;SetFontIndirect does work on the tab text, but it seems to have a bad side effect.&nbsp; It causes the text on the buttons and groups to rotate 90 degrees clockwise.&nbsp; Here are snapshots with and without that call: </FONT><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20071221_104510_sfi.png" border="0">&nbsp;&nbsp;&nbsp;&nbsp; <img src="https://forum.codejock.com/uploads/20071221_104406_sfi_wo.png" border="0">&nbsp; </DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Any further suggestions?</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 21 Dec 2007 10:48:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29703&amp;title=changing-the-ribbon-bar-font#29703</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : Hi,  try  CXTPRibbonPaintManager*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29693&amp;title=changing-the-ribbon-bar-font#29693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 21 December 2007 at 1:02am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>try</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><FONT face="Courier New"><FONT color=#800080>CXTPRibbonPaintManager</FONT><FONT color=#000080>*</FONT> pPaintManager <FONT color=#000080>=</FONT> (<FONT color=#800080>CXTPRibbonPaintManager</FONT><FONT color=#000080>*)</FONT>pRibbonBar<FONT color=#000080>-&gt;</FONT>GetPaintManager<FONT color=#000080>())</FONT><FONT color=#000080>{</FONT></FONT></FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New" size=2>pPaintManager-&gt;</FONT>m_fontGroupCaption.SetCustomFont(...);</DIV><DIV><FONT face="Courier New" size=2>pPaintManager-&gt;GetTabPaintManager()-&gt;SetFontIndirect(..);</FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 21 Dec 2007 01:02:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29693&amp;title=changing-the-ribbon-bar-font#29693</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the Ribbon Bar Font : I&amp;#039;m trying to change the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29684&amp;title=changing-the-ribbon-bar-font#29684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 9161<br /><strong>Posted:</strong> 20 December 2007 at 5:56pm<br /><br />I'm trying to change the ribbon bar font and only getting partially there.&nbsp; Here's a screenshot of what I have so far with the font changed to wingdings to make the changes stand out:<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20071220_175002_wingdings.png" border="0"></DIV><DIV>&nbsp;</DIV><DIV>The text on the buttons is updating, but the tab and group text does not do so.&nbsp; Here is how I got this far.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#800000>if</FONT> <FONT color=#000080>(</FONT>CFont<FONT color=#000080>*</FONT> pFontToUse <FONT color=#000080>=</FONT> rbfd<FONT color=#000080>.</FONT>GetFont<FONT color=#000080>()) </FONT></FONT></FONT><FONT color=#000080><FONT face="Courier New, Courier, mono" size=2>{</FONT></DIV></FONT><P><FONT size=2><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; LOGFONT lfToUse </FONT><FONT face="Courier New, Courier, mono"><FONT color=#000080>=</FONT> <FONT color=#000080>{0};</P></FONT></FONT></FONT><P><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#800000>&nbsp;&nbsp;&nbsp; if</FONT> <FONT color=#000080>(</FONT><FONT color=#800000>int</FONT> nRC <FONT color=#000080>=</FONT> pFontToUse<FONT color=#000080>-&gt;</FONT>GetLogFont<FONT color=#000080>(&amp;</FONT>lfToUse<FONT color=#000080>))</FONT></FONT></FONT><FONT color=#000080><FONT face="Courier New, Courier, mono" size=2>{</FONT></P></FONT><P><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#800000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if</FONT> <FONT color=#000080>(</FONT><FONT color=#800080>CXTPPaintManager</FONT><FONT color=#000080>*</FONT> pPaintManager <FONT color=#000080>=</FONT> pRibbonBar<FONT color=#000080>-&gt;</FONT>GetPaintManager<FONT color=#000080>())</FONT></FONT></FONT><FONT color=#000080><FONT face="Courier New, Courier, mono" size=2>{</FONT></P></FONT><P><FONT size=2><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPaintManager</FONT><FONT face="Courier New, Courier, mono"><FONT color=#000080>-&gt;</FONT>SetCommandBarsFontIndirect<FONT color=#000080>(&amp;</FONT>lfToUse<FONT color=#000080>);</P></FONT></FONT></FONT><P><FONT color=#0000ff><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //pPaintManager-&gt;UpdateFonts(); doesn't seem necessary</FONT></P></FONT><FONT face="Arial, Helvetica, sans-serif" size=2><P>Any suggestions on getting the rest of the way?&nbsp; Thanks!</P><DIV></DIV><P>&nbsp;</P><P></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 20 Dec 2007 17:56:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9161&amp;PID=29684&amp;title=changing-the-ribbon-bar-font#29684</guid>
  </item> 
 </channel>
</rss>