<?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 : Ribbon colors customization -- How?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Ribbon colors customization -- How?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 02:53:03 +0000</pubDate>
  <lastBuildDate>Thu, 16 Sep 2010 03:40:23 +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=17254</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[Ribbon colors customization -- How? :   First off, I did not want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17254&amp;PID=60223&amp;title=ribbon-colors-customization-how#60223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 17254<br /><strong>Posted:</strong> 16 September 2010 at 3:40am<br /><br />First off, I did not want to hijack this thread <a href="https://forum.codejock.com/forum_posts.asp?TID=17238" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=17238</a>, as my question will be a bit more precise.<br><br>I'm trying to build my own custom ribbon theme. As an exercise, I took Office2007Blue theme as a starting point. Even without documentation, the customization seemed to be fairly straightforward: all that was needed was to modify a number of .png images and a .ini file... Or at least I thought so. :)<br><br>There is a number of images in the 'res' folder that have 'Ribbon' in their names, so these were naturally the ones that I've modified first, changing the blue color to be slightly darker (see the picture below).<br><br>After I modified all those images, there were still some parts of the ribbon that simply refused to be displayed in my own colors. <br><br>First, I have created the Update button (on the picture below) like this:<br><br>CXTPRibbonGroup* groupApplications = tab-&gt;AddGroup(ID_RIBBONGROUP_APPLICATIONS);<br>groupApplications-&gt;SetControlsGrouping(TRUE);<br>...<br> CXTPControl* ctrlUpdate = groupApplications-&gt;Add(xtpControlButton, ID_UPDATE);<br>ctrlUpdate-&gt;SetBeginGroup(TRUE);<br>ctrlUpdate-&gt;SetStyle(xtpButtonIconAndCaption);<br>// set 16x16 icon...<br><br><img src="uploads/20100916_032939_ribb&#111;n.png" height="57" width="290" border="0"><br><br>It seems that the background of my button still has a color that comes from some part of the original Office2007Blue theme, some part that I did not modify. But which one? <br><br>I did change every single 'Ribbon'xxx.png image and even some other images (like, for example, PushButton.png), but none of them corresponds to that part of the ribbon. I also went and changed virtually all RGB values in the corresponding .ini file, but none of them affects this background.<br><br>&#091;Edit: please ignore, this turned out to be the issue with our images.&#093;<br><strike><font color="#999999">Another issue is the bottom part of the group frame. It appears that RibbonGroupCaption.png is the image that corresponds to that part of the ribbon. I don't have this light frame color anywhere in my customized image, and yet it somehow shows up at runtime. </font><br></strike><br>It seems that the embedded theme images do not get displayed as-is, but instead some additional transformation gets applied to them at run-time. <br><br>Questions:<br><br>- where/what are the colors/images responsible for drawing the button <font color="#999999"><strike>and the border frame</strike></font> shown above?<br><br>More generally,<br><br>- is there a document that describes the customization process? <br>&nbsp;&nbsp;&nbsp; - what images go where on the ribbon?<br>&nbsp;&nbsp;&nbsp; - which colors from the .ini file affect ribbon (apart from those from the &#091;Ribbon&#093; section)?<br>&nbsp;&nbsp;&nbsp; - what color transformations get applied at runtime?<br><br>Thanks in advance!<br><br>]]>
   </description>
   <pubDate>Thu, 16 Sep 2010 03:40:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17254&amp;PID=60223&amp;title=ribbon-colors-customization-how#60223</guid>
  </item> 
 </channel>
</rss>