<?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 : Left align text in a button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Left align text in a button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:37:14 +0000</pubDate>
  <lastBuildDate>Wed, 14 Jul 2010 13:08:49 +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=16954</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[Left align text in a button : I have a Menu inside a CXTPRib...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16954&amp;PID=59330&amp;title=left-align-text-in-a-button#59330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6234">RedAndWhite</a><br /><strong>Subject:</strong> 16954<br /><strong>Posted:</strong> 14 July 2010 at 1:08pm<br /><br />I have a Menu inside a CXTPRibbonControlSystemRecentFileList and I have been unable to get rid of the leading white space, red circle in picture bellow.&nbsp; I am hoping someone here may be able to provide some insight.<br><br>The following is how the popup menu is created:<br><table width="99%"><tr><td><pre class="BBcode"><br>CXTPControlPopup* opControl = NULL;<br>if (CreateControl(oCommandBars, IDR_RECENT_SCRIPTS_MENU, ID_FILE_MRV_FILE1, opControl))<br>{<br>&nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = opControl;<br>&nbsp;&nbsp;&nbsp; retVal = TRUE;<br>}<br></pre></td></tr></table><br><br>The code I use to add the elements into the menu is as follows:<br><table width="99%"><tr><td><pre class="BBcode"><br>CXTPControl* opControl = oControls.Add(xtpControlButton, theRealIndex + opCmdUI-&gt;m_nID);<br>if (opControl)<br>{<br>&nbsp;&nbsp;&nbsp; opControl-&gt;SetCaption(CString(buf) + ostrTemp);<br>&nbsp;&nbsp;&nbsp; opControl-&gt;SetDescription(_T(""));<br>&nbsp;&nbsp;&nbsp; opControl-&gt;SetTooltip(ostrTemp);<br>&nbsp;&nbsp;&nbsp; opControl-&gt;SetFlags(xtpFlagManualUpdate | xtpFlagShowPopupBarTip);<br>}<br></pre></td></tr></table><br><br><br>It looks as though the button has reserved that space for an image, which is unwanted in this situation.&nbsp; If I create the menu items with 'xtpControlLabel' instead of 'xtpControlButton' I get the left justification I'm looking for but I lose the look and feel of the button.&nbsp; Is there some way for me to get rid of that white space?<br><br><br><img src="uploads/20100714_125425_MenuProblem.jpg" height="391" width="543" border="0"><br>]]>
   </description>
   <pubDate>Wed, 14 Jul 2010 13:08:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16954&amp;PID=59330&amp;title=left-align-text-in-a-button#59330</guid>
  </item> 
 </channel>
</rss>