<?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 bar button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon bar button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:17:30 +0000</pubDate>
  <lastBuildDate>Fri, 05 Aug 2011 05:07:37 +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=18745</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 bar button : Can anyone please please help...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18745&amp;PID=65742&amp;title=ribbon-bar-button#65742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6872">VC++PROGRAMMER</a><br /><strong>Subject:</strong> 18745<br /><strong>Posted:</strong> 05 August 2011 at 5:07am<br /><br />Can anyone please please help me??]]>
   </description>
   <pubDate>Fri, 05 Aug 2011 05:07:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18745&amp;PID=65742&amp;title=ribbon-bar-button#65742</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon bar button :  In my VC++ application, there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18745&amp;PID=65567&amp;title=ribbon-bar-button#65567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6872">VC++PROGRAMMER</a><br /><strong>Subject:</strong> 18745<br /><strong>Posted:</strong> 29 July 2011 at 2:00am<br /><br /><DIV>&nbsp;</DIV><DIV>In my VC++ application, there is a ribbonbar and&nbsp; some text inside the button of the ribbon group. The code which i wrote for creating the ribbon group is given below.</DIV><DIV><BR>&nbsp; <FONT face="Courier New, Courier, mono">CXTPRibbonGroup*&nbsp; pGrpOne&nbsp;&nbsp;&nbsp; = m_pTabHome-&gt;AddGroup( _T("Step 1") );<BR>&nbsp;CXTPControl*&nbsp; pGrpOneButton&nbsp; = pGrpOne-&gt;Add(xtpControlButton, IDC_GROUP_1); <BR>&nbsp;pGrpOneButton&nbsp; -&gt;SetStyle( xtpButtonIconAndCaptionBelow );<BR>&nbsp;ppGrpOneButton-&gt;SetHeight(34);<BR>&nbsp;pGrpOneButton&nbsp; -&gt;SetCaption( IDS_CAPTION_1 );<BR>&nbsp;pGrpOneButton&nbsp; -&gt;SetWidth(100);</FONT></DIV><P>The problem is that if I set the style of the ribbon group button to "xtpButtonIconAndCaptionBelow",&nbsp; the text is multilined but not placed in the center of the button. Please see the image below.</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="http://forum.codejock.com/uploads/6872/ribb&#111;n.JPG" height="149" width="126" hspace="100" border="0" /><BR>&nbsp;<BR>If I use any other styles like "<EM>xtpButtonIconAndCaption</EM>" or "<EM>xtpButtonAutomatic</EM>" or "<EM>xtpButtonCaption</EM>"&nbsp; the text is centralized but not multilined.<BR>Can anyone please confirm whether there is any way to obtain <strong>both</strong> the features i.e. <strong>multiline</strong> and <strong>centralized</strong> text?????<BR>&nbsp;<BR>Thank you.................</P>]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 02:00:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18745&amp;PID=65567&amp;title=ribbon-bar-button#65567</guid>
  </item> 
 </channel>
</rss>