<?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 : How to put a CXTPDatePickerControl in a RibbonBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to put a CXTPDatePickerControl in a RibbonBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:12:19 +0000</pubDate>
  <lastBuildDate>Wed, 16 Jan 2008 05:11: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=9290</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[How to put a CXTPDatePickerControl in a RibbonBar : Excellent!  Thank you very much! ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30165&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 16 January 2008 at 5:11am<br /><br />Excellent! <img src="https://forum.codejock.com/smileys/smiley20.gif" border="0"><DIV>Thank you very much!</DIV><DIV><img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 16 Jan 2008 05:11:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30165&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30165</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : Here sample:  Ribbon.zip ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30159&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 16 January 2008 at 3:19am<br /><br />Here sample:<DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20080116_031903_Ribb&#111;n.zip" target="_blank">Ribbon.zip</A></DIV>]]>
   </description>
   <pubDate>Wed, 16 Jan 2008 03:19:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30159&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30159</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : thank u very much!   And, it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30157&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30157</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 15 January 2008 at 10:16pm<br /><br />thank u very much! <DIV>&nbsp;</DIV><DIV>And, it will be very appreciate if u teach me how to "catch it menually".</DIV><DIV>&nbsp;</DIV><DIV>Oleg <img src="https://forum.codejock.com/smileys/smiley20.gif" border="0">!</DIV>]]>
   </description>
   <pubDate>Tue, 15 Jan 2008 22:16:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30157&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30157</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : Hello,  You have manually catch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30141&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 15 January 2008 at 8:45am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>You have manually catch it and close popup - GetCommandBars()-&gt;ClosePopups().</DIV>]]>
   </description>
   <pubDate>Tue, 15 Jan 2008 08:45:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30141&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30141</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : thanks a lot.   but i don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30138&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 15 January 2008 at 8:26am<br /><br />thanks a lot. <DIV>&nbsp;</DIV><DIV>but i don't like DatePickerComboBox, because it is not&nbsp;derived from&nbsp;CXTPControlComboBox.</DIV><DIV>Can u&nbsp;show me how to derive it from CXTPControlComboBox?</DIV><DIV>&nbsp;</DIV><DIV>i find another choice. like this:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;pTab = pRibbonBar-&gt;AddTab(ID_TAB_CALENDAR);<BR>&nbsp;CXTPRibbonGroup*&nbsp;pGroup&nbsp;=&nbsp;pTab-&gt;AddGroup(ID_GROUP_CALENDAR);<BR>&nbsp;pGroup-&gt;SetControlsCentering(true);<BR>&nbsp;pControl = pGroup-&gt;Add(xtpControlSplitButtonPopup, ID_DATE_TEXT); // just&nbsp;static text to show date<BR>&nbsp;pControl-&gt;SetID(0);<BR>&nbsp;pControl-&gt;SetStyle(xtpButtonCaption);<BR>&nbsp;CXTPControlCustom*&nbsp;pDatePicker&nbsp;=&nbsp;new CXTPControlCustom();<BR>&nbsp;CXTPDatePickerControl*&nbsp;pDateCtrl&nbsp;=&nbsp;new CXTPDatePickerControl();<BR>&nbsp;pDateCtrl-&gt;Create(WS_TABSTOP | WS_CHILD,&nbsp;CRect(0, 0, 290, 400), pRibbonBar, ID_DATE_PICKER_CTRL);<BR>&nbsp; pDatePicker-&gt;SetControl(pDateCtrl);<BR>&nbsp;&nbsp;pDatePicker-&gt;SetFlags(xtpFlagManualUpdate);<BR>&nbsp;pControl-&gt;GetCommandBar()-&gt;GetControls()-&gt;Add(pDatePicker, ID_DATE_PICKER);</DIV><DIV><BR>&nbsp;</DIV><DIV>It's nice except&nbsp;one problem.&nbsp;after i clicked the down arrow, the DatePicker is shown as a drop list, and it's ok. but it <strong>doesn't</strong> <strong>disappear</strong> after i cliked&nbsp;a 'date'!</DIV>]]>
   </description>
   <pubDate>Tue, 15 Jan 2008 08:26:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30138&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30138</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : Hi, try DatePickerComboBox instead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30106&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 14 January 2008 at 9:38am<br /><br />Hi,<DIV>try DatePickerComboBox&nbsp; instead of CXTPDatePickerControl</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 09:38:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30106&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30106</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : I think i find what is wrong. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30101&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 14 January 2008 at 6:56am<br /><br />I think i find what is wrong.<DIV>I modified my code like this:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;pTab = pRibbonBar-&gt;AddTab(ID_TAB_CALENDAR);<BR>&nbsp;CXTPRibbonGroup*&nbsp;pGroup&nbsp;=&nbsp;pTab-&gt;AddGroup(ID_GROUP_CALENDAR);<BR>&nbsp;pGroup-&gt;SetControlsCentering(true);<BR>&nbsp;CXTPControlCustom*&nbsp;pDatePicker&nbsp;=&nbsp;new CXTPControlCustom();<BR>&nbsp;CXTPDatePickerControl*&nbsp;pDatePickerCtrl&nbsp;=&nbsp;new CXTPDatePickerControl();<BR>&nbsp;pDatePickerCtrl-&gt;Create(WS_CHILD | WS_VISIBLE, CRect(0, 0, 300, 128), pRibbonBar, ID_DATE_PICKER_CTRL);<BR>&nbsp;pDatePicker-&gt;SetControl(pDatePickerCtrl);<BR>&nbsp;pGroup-&gt;Add(pDatePicker, ID_DATE_PICKER);</DIV><DIV>&nbsp;</DIV><DIV>then it shows on ribbon. <FONT color=#ff0000>but</FONT>, because the height of&nbsp;CXTPDatePickerControl is bigger than the height of RibbonBar, it shows only the top of CXTPDatePickerControl. it's ugly!</DIV><DIV>&nbsp;</DIV><DIV>who can give me a better idea?<BR>thanks!</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 06:56:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30101&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30101</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : thanks, oleg! but I don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30095&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 14 January 2008 at 5:58am<br /><br />thanks, oleg!<DIV>but I don't know how to use CXTPControlCustom!</DIV><DIV>&nbsp;</DIV><DIV>i write&nbsp;my code like this:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CXTPRibbonTab* pTab = pRibbonBar-&gt;AddTab(ID_TAB_CALENDAR);<BR>&nbsp;CXTPRibbonGroup*&nbsp;pGroup&nbsp;=&nbsp;pTab-&gt;AddGroup(ID_GROUP_CALENDAR);<BR>&nbsp;pGroup-&gt;SetControlsCentering(true);<BR>&nbsp;CXTPControlCustom*&nbsp;pDatePicker&nbsp;=&nbsp;new CXTPControlCustom();<BR>&nbsp;CXTPDatePickerControl*&nbsp;pDatePickerCtrl&nbsp;=&nbsp;new CXTPDatePickerControl();<BR>&nbsp;pDatePicker-&gt;SetControl(pDatePickerCtrl);<BR>&nbsp;pGroup-&gt;Add(pDatePicker, ID_DATE_PICKER);</DIV><DIV>&nbsp;</DIV><DIV>it doesn't show&nbsp;the datepicker!</DIV><DIV>&nbsp;</DIV><DIV>help me<BR></DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 05:58:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30095&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30095</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : Hi, Use CXTPControlCustom. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30090&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30090</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 14 January 2008 at 5:32am<br /><br />Hi,<DIV>Use CXTPControlCustom.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 05:32:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30090&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30090</guid>
  </item> 
  <item>
   <title><![CDATA[How to put a CXTPDatePickerControl in a RibbonBar : I want to put a CXTPDatePickerControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30084&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 9290<br /><strong>Posted:</strong> 14 January 2008 at 12:04am<br /><br />I want to put a CXTPDatePickerControl in a RibbonBar.<DIV>Please give me some idea!</DIV><DIV>&nbsp;</DIV><DIV>if I create a DatePickerComboBox like the DatePicker Sample, how to put it in ribbonbar?</DIV><DIV>&nbsp;</DIV><DIV>and is there any better idea?</DIV><DIV>&nbsp;</DIV><DIV>sincerely</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 00:04:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9290&amp;PID=30084&amp;title=how-to-put-a-cxtpdatepickercontrol-in-a-ribbonbar#30084</guid>
  </item> 
 </channel>
</rss>