<?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 Control alignment</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon Control alignment]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 15:41:28 +0000</pubDate>
  <lastBuildDate>Tue, 22 Mar 2011 11:05: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=18101</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 Control alignment :  Hi;  Just after posting my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63466&amp;title=ribbon-control-alignment#63466</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18101<br /><strong>Posted:</strong> 22 March 2011 at 11:05am<br /><br />Hi;<br><br>Just after posting my initial question I had to change the layout due to customers wishes I recognized later. The new layout should be this:<br><br><img src="uploads/109/22-03-2011_15-59-15.png" height="103" width="193" border="0" /><br><br>Any ideas how to achieve this kind of layout? <br><br>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 11:05:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63466&amp;title=ribbon-control-alignment#63466</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control alignment : Why do you create two captions?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63465&amp;title=ribbon-control-alignment#63465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 18101<br /><strong>Posted:</strong> 22 March 2011 at 10:55am<br /><br />Why do you create two captions? And move the second caption after the second index?<DIV>&nbsp;</DIV><DIV>I would just create one label, and the the two custom controls.</DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 10:55:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63465&amp;title=ribbon-control-alignment#63465</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control alignment : Hi;I do this allready! First I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63464&amp;title=ribbon-control-alignment#63464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18101<br /><strong>Posted:</strong> 22 March 2011 at 10:40am<br /><br />Hi;<br><br>I do this allready! First I load the toolbar ressource, then I create two xtpControlLabel controls:<br><br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; pGroup=TabReports-&gt;AddGroup(ID_GROUP_REPORT_DATETIME);<br>&nbsp;&nbsp;&nbsp; CXTPControl* pControl = pGroup-&gt;Add(xtpControlLabel, ID_REPORT_DATE_FROM_CAPTION, 0, 0);<br>&nbsp;&nbsp;&nbsp; pControl-&gt;SetID(0);<br>&nbsp;&nbsp;&nbsp; pControl-&gt;SetStyle(xtpButtonCaption);<br><br>&nbsp;&nbsp;&nbsp; pControl = pGroup-&gt;Add(xtpControlLabel, ID_REPORT_DATE_TO_CAPTION, 0, 2);<br>&nbsp;&nbsp;&nbsp; pControl-&gt;SetID(0);<br>&nbsp;&nbsp;&nbsp; pControl-&gt;SetStyle(xtpButtonCaption);</pre></td></tr></table><br><br>In OnCreateControl I create my two custom controls to enter timestamps:<br><br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; // Create the timestamp control<br>&nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == ID_REPORT_DATETIME_FROM)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FromTime_.AllowEmptyTimestamp(true);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FromTime_.SetShowSeconds(false);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FromTime_.SetButtonGap(0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!FromTime_.Create(0, WS_TABSTOP | WS_CHILD | TSCS_HASCALENDARBUTTON | TSCS_AUTOSIZE, <br>&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; CRect(0,0,160,22), this, ID_REPORT_DATETIME_FROM ))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CSize size(FromTime_.GetBestFit());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FromTime_.SetWindowPos(0, 0, 0, size.cx, size.cy, SWP_NOMOVE|SWP_NOACTIVATE|SWP_NOZORDER);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FromTime_.ClearSelection();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControlCustom* pControl = CXTPControlCustom::CreateControlCustom(&amp;FromTime_);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetBorders(0, 3, 0, 3);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Set the xtpFlagManualUpdate flag.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Without this flag you must call the Enable member of<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // CCmdUI in the ON_UPDATE_COMMAND_UI handler.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetFlags(xtpFlagManualUpdate);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pControl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; }</pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 10:40:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63464&amp;title=ribbon-control-alignment#63464</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control alignment : I accomplished this by using a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63463&amp;title=ribbon-control-alignment#63463</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 18101<br /><strong>Posted:</strong> 22 March 2011 at 10:36am<br /><br />I accomplished this by using a <FONT size=2>xtpControlLabel&nbsp;as the first control, instead of using the label on the <FONT size=2>xtpControlEdit, or whatever control you are using.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 10:36:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63463&amp;title=ribbon-control-alignment#63463</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control alignment : Hi;What I got is this:But I want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63462&amp;title=ribbon-control-alignment#63462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18101<br /><strong>Posted:</strong> 22 March 2011 at 10:30am<br /><br />Hi;<br><br>What I got is this:<br><br><img src="uploads/109/22-03-2011_15-29-31.png" height="104" width="275" border="0" /><br><br>But I want this:<br><br><img src="uploads/109/22-03-2011_15-23-54.png" height="108" width="151" border="0" /><br><br>How?<br>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 10:30:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18101&amp;PID=63462&amp;title=ribbon-control-alignment#63462</guid>
  </item> 
 </channel>
</rss>