<?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 : controlcombobox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : controlcombobox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 06:40:18 +0000</pubDate>
  <lastBuildDate>Thu, 17 Dec 2009 08:49:05 +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=15843</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[controlcombobox : It works now. Thank you!  Is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55714&amp;title=controlcombobox#55714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 17 December 2009 at 8:49am<br /><br /><P>It works now.</P><DIV>Thank you!</DIV><DIV>&nbsp;</DIV><DIV>Is there also a method for setting the position of icon and caption, when the style is</DIV><DIV>"icon and caption below"?</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Thu, 17 Dec 2009 08:49:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55714&amp;title=controlcombobox#55714</guid>
  </item> 
  <item>
   <title><![CDATA[controlcombobox : Hi,  Sorry, CONTROLINFO is declared...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55710&amp;title=controlcombobox#55710</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 17 December 2009 at 7:34am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Sorry, CONTROLINFO is declared as private type of CXTPRibbnoGroup and seems you can't access it to position controls. Sorry our bad - we will move it to protected section (please also patch your sources) - you will be able to change m_pLayoutInfo array. See how original method works:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>int nDataCount = m_pLayoutInfo-&gt;nControlCount;<BR>&nbsp;CONTROLINFO* pData = m_pLayoutInfo-&gt;pControls;</DIV><DIV>&nbsp;for (int i = 0; i &lt; nDataCount; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;CONTROLINFO* pControl = &amp;pData<em>;</DIV><DIV>&nbsp;&nbsp;BOOL bFullRow = pControl-&gt;pControl-&gt;GetStyle() == xtpButtonIconAndCaptionBelow;<BR>&nbsp;&nbsp;pControl-&gt;EnsureButtonSize(pDC);<BR>&nbsp;&nbsp;CSize szControl = pControl-&gt;szControl;</DIV><DIV>&nbsp;&nbsp;int dx = szControl.cx;<BR>&nbsp;&nbsp;int dy = szControl.cy;</DIV><DIV>&nbsp;&nbsp;BOOL bBeginGroup = pControl-&gt;bBeginGroup &amp;&amp; i &gt; 0;<BR>&nbsp;&nbsp;BOOL bWrapGroup = pControl-&gt;bWrapGroup &amp;&amp; i &gt; 0;</DIV><DIV>&nbsp;&nbsp;if (bBeginGroup)<BR>&nbsp;&nbsp;&nbsp;x += 6;</DIV><DIV>&nbsp;&nbsp;if (i &gt; 0 &amp;&amp; !bWrapGroup &amp;&amp; !bFullRow &amp;&amp; dyPrev + dy &lt;= nResultHeight)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;pControl-&gt;rcControl.SetRect(x, dyPrev, x + dx, dyPrev + dy);</DIV><DIV>&nbsp;&nbsp;&nbsp;dxPrev = max(dxPrev, dx);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;x += dxPrev;<BR>&nbsp;&nbsp;&nbsp;pControl-&gt;rcControl.SetRect(x, 0, x + dx, dy);<BR>&nbsp;&nbsp;&nbsp;dxPrev = dx;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;sizeResult.cx = max(x + dx, sizeResult.cx);</DIV><DIV>&nbsp;&nbsp;dyPrev = pControl-&gt;rcControl.bottom;<BR>&nbsp;}<BR></DIV>]]>
   </description>
   <pubDate>Thu, 17 Dec 2009 07:34:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55710&amp;title=controlcombobox#55710</guid>
  </item> 
  <item>
   <title><![CDATA[controlcombobox : Hi, I&amp;#039;ve tried to override...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55690&amp;title=controlcombobox#55690</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 16 December 2009 at 12:20pm<br /><br /><P>Hi,</P><P>I've tried to override the method you've suggest.</P><P>For fastly seeing the result, I've tried to do this:</P><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>int CMyRibbonGroup::OnCalcDynamicSize(CDC* pDC))</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp; if(m_bReduced)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return CXTPRibbonGroup::OnCalcDynamicSize(pDC);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; int nResultHeight = GetRibbonBar()-&gt;CalcGroupsHeight() - 8 - GetRibbonBar()-&gt;GetRibbonPaintManager()-&gt;GetGroupCaptionHeight();</DIV><DIV>&nbsp;&nbsp; CXTPControl *pControl = GetAt(0);</DIV><DIV>&nbsp;&nbsp; CSize szControl = pControl-&gt;GetSize(pDC);</DIV><DIV>&nbsp;&nbsp; int dx = szControl.cx;</DIV><DIV>&nbsp;&nbsp; int dy = szControl.cy;</DIV><DIV>&nbsp;&nbsp; pControl-&gt;SetRect(CRect(x,0,x+dx,dy));</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; return _bignumber;</DIV><DIV>}</DIV><DIV><DIV></pre></td></tr></table></DIV></DIV><DIV>&nbsp;</DIV><DIV>I can't see anything in my group.</DIV><DIV>&nbsp;</DIV><DIV>Is it correct to call CXTPControl::SetRect?</DIV><DIV>&nbsp;</DIV><DIV>EDIT: The first time the group is shown I can't see anything...</DIV><DIV>If I minimize and then maximize the ribbon, I can see them...</DIV><DIV>And then if I switch tabs, they "go down" until they are not visible yet.</DIV><DIV>Why?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 16 Dec 2009 12:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55690&amp;title=controlcombobox#55690</guid>
  </item> 
  <item>
   <title><![CDATA[controlcombobox : Hi,  There is no such method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55638&amp;title=controlcombobox#55638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 15 December 2009 at 4:52am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>There is no such method :( If you don't like how Group position it with//without SetControlsCentering option you can override CXTPRibbonGroup::OnCalcDynamicSize and manually position them.</DIV>]]>
   </description>
   <pubDate>Tue, 15 Dec 2009 04:52:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55638&amp;title=controlcombobox#55638</guid>
  </item> 
  <item>
   <title><![CDATA[controlcombobox : ... You&amp;#039;re right!  And......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55615&amp;title=controlcombobox#55615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 14 December 2009 at 8:02am<br /><br />... You're right!<DIV>&nbsp;</DIV><DIV>And... for setting&nbsp;a control position inside&nbsp;a group?</DIV><DIV>&nbsp;</DIV><DIV>E.g., bottom/right</DIV>]]>
   </description>
   <pubDate>Mon, 14 Dec 2009 08:02:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55615&amp;title=controlcombobox#55615</guid>
  </item> 
  <item>
   <title><![CDATA[controlcombobox : Hi,  You can make 2 separate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55600&amp;title=controlcombobox#55600</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 14 December 2009 at 6:22am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can make 2 separate controls - xtpControlLabel with icon and caption + Combo without Icon and caption.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Dec 2009 06:22:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55600&amp;title=controlcombobox#55600</guid>
  </item> 
  <item>
   <title><![CDATA[controlcombobox : Hi,  I have a combo shown in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55594&amp;title=controlcombobox#55594</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 15843<br /><strong>Posted:</strong> 14 December 2009 at 5:18am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have a combo shown in a ribbon group.</DIV><DIV>I'd like the combo to be below icon and caption, not on the right of as you can see here.</DIV><DIV><img src="https://forum.codejock.com/uploads/20091214_051733_combo.png" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Any suggestion?</DIV><DIV>&nbsp;</DIV><DIV>Thank&nbsp;you very much&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 14 Dec 2009 05:18:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15843&amp;PID=55594&amp;title=controlcombobox#55594</guid>
  </item> 
 </channel>
</rss>