<?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 : Strange ribbon layout when groups height increased</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Strange ribbon layout when groups height increased]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 28 May 2026 11:13:16 +0000</pubDate>
  <lastBuildDate>Wed, 20 Dec 2006 13:42:31 +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=5852</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[Strange ribbon layout when groups height increased : Found it! It is in CXTPRibbonGroup::CenterColumn,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5852&amp;PID=18419&amp;title=strange-ribbon-layout-when-groups-height-increased#18419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5852<br /><strong>Posted:</strong> 20 December 2006 at 1:42pm<br /><br /><font size="2">Found it!<br>It is in </font><font size="2">CXTPRibbonGroup::CenterColumn, file XTPRibbonGroups.cpp, line 773.<br></font><br>Code:<br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;rcControl.OffsetRect(0, nOffset);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nOffset += nOffset;<br><br><font face="Verdana, Arial, Helvetica, sans-serif" size="2">With each iteration, the offset is doubling, instead of increasing by the original offset. I would suggest something like this:<br><br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; int nOffsetStep = (nGroupHeight - nHeight) / (nItems + 1);<br>&nbsp;&nbsp;&nbsp; int nOffset = nOffsetStep; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; .<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; .<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; . &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br></font></font></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pControl-&gt;rcControl.OffsetRect(0, nOffset);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nOffset += nOffsetStep;<br><font face="Verdana, Arial, Helvetica, sans-serif"><br>Sincerely,<br><br>Bojan Hrnkas</font><br></font><br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 13:42:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5852&amp;PID=18419&amp;title=strange-ribbon-layout-when-groups-height-increased#18419</guid>
  </item> 
  <item>
   <title><![CDATA[Strange ribbon layout when groups height increased : Btw, is it possible to force buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5852&amp;PID=18417&amp;title=strange-ribbon-layout-when-groups-height-increased#18417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5852<br /><strong>Posted:</strong> 20 December 2006 at 1:03pm<br /><br />Btw, is it possible to force buttons that have style xtpButtonIconAndCaptionBelow to be placed in two or more rows if there is enough space?<br><br>Thanks!<br><br>Bojan<br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 13:03:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5852&amp;PID=18417&amp;title=strange-ribbon-layout-when-groups-height-increased#18417</guid>
  </item> 
  <item>
   <title><![CDATA[Strange ribbon layout when groups height increased : Hi!I have following problem:I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5852&amp;PID=18416&amp;title=strange-ribbon-layout-when-groups-height-increased#18416</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5852<br /><strong>Posted:</strong> 20 December 2006 at 12:51pm<br /><br />Hi!<br><br>I have following problem:<br><img src="uploads/20061220_124503_Ribb&#111;nLayout.JPG" height="316" width="562" border="0"><br><br>I needed a larger Toolbar in order to place my ListBox on the first Tab. As the result, the other controls are oddly positioned. The vertical space&nbsp; between two buttons is not always the same, and seams to be bigger if the controls are lower on the Toolbar.<br><br>Is this a bug? Have you seen this before?<br><br>It looks like the calculation problem. I will try to find the problem myself, and if I do, I will let you know.<br><br>Greets,<br><br>Bojan Hrnkas<br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 12:51:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5852&amp;PID=18416&amp;title=strange-ribbon-layout-when-groups-height-increased#18416</guid>
  </item> 
 </channel>
</rss>