<?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 : CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 13 Aug 2026 20:58:27 +0000</pubDate>
  <lastBuildDate>Fri, 28 Aug 2009 09:02:15 +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=15055</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[CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range : Other people can use another logic......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52514&amp;title=captionbar-doesnt-honor-datepicker-range#52514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15055<br /><strong>Posted:</strong> 28 August 2009 at 9:02am<br /><br />Other people can use another logic... And improve your code to cover MonthView case]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 09:02:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52514&amp;title=captionbar-doesnt-honor-datepicker-range#52514</guid>
  </item> 
  <item>
   <title><![CDATA[CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range : OK - works partially but my solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52512&amp;title=captionbar-doesnt-honor-datepicker-range#52512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 15055<br /><strong>Posted:</strong> 28 August 2009 at 8:55am<br /><br />OK - works partially but my solution is not very elegant because MonthView doesn't work:<DIV>&nbsp;</DIV><DIV>Private Sub CalendarControl1_SelectionChanged(ByVal SelType As XtremeCalendarControl.CalendarSelectionChanged)<BR>&nbsp; Static InProgress_OK As Boolean<BR>&nbsp; Dim d1 As Date<BR>&nbsp; Dim d2 As Date<BR>&nbsp; <BR>&nbsp; If SelType = xtpCalendarSelectionDays And CalendarControl1.ViewType &lt;&gt; xtpCalendarMonthView And Not InProgress_OK Then<BR>&nbsp;&nbsp;&nbsp; InProgress_OK = True<BR>&nbsp;&nbsp;&nbsp; d1 = DateSerial(Year(Now()), Month(Now()) - AppConfig.Value("Agenda.nMonateRet", 0), 1)<BR>&nbsp;&nbsp;&nbsp; d2 = DateSerial(Year(Now()), Month(Now()) + APPFORWARD + 1, 1)<BR>&nbsp;&nbsp;&nbsp; If CalendarControl1.ActiveView.Days(0).Date &lt; d1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl1.ViewType = xtpCalendarDayView<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl1.ActiveView.ShowDay d1<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; If CalendarControl1.ActiveView.Days(CalendarControl1.ActiveView.DaysCount - 1).Date &gt; d2 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl1.ViewType = xtpCalendarDayView<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl1.ActiveView.ShowDay d2<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; InProgress_OK = False<BR>&nbsp; End If<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>probably there is a better solution. Best if caption bar buttons would honore the useable range of the attached date picker!</DIV><DIV>&nbsp;</DIV><DIV>I use the built in caption bar!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 08:55:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52512&amp;title=captionbar-doesnt-honor-datepicker-range#52512</guid>
  </item> 
  <item>
   <title><![CDATA[CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range : I already explained you - there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52484&amp;title=captionbar-doesnt-honor-datepicker-range#52484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15055<br /><strong>Posted:</strong> 28 August 2009 at 1:55am<br /><br />I already explained you - there is Event and Notification - see my prev post. You can react on it - if bCancel = TRUE - action (change date range) will be canceled <DIV>&nbsp;</DIV><DIV>Another idea - if you don't want to react on CaptionBar notification - react on Calendar or DatePicker dates range changed</DIV><DIV>&nbsp;</DIV><DIV>e.g.</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CalendarControl_SelectionChanged(ByVal SelType As XtremeCalendarControl.CalendarSelectionChanged)<BR>&nbsp;&nbsp;&nbsp; If SelType = xtpCalendarSelectionDays Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "SelectionChanged. Day(s)."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If CalendarControl.ActiveView.Selection.IsValid Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print CalendarControl.ActiveView.Selection.Begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print CalendarControl.ActiveView.Selection.End<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; If SelType = xtpCalendarSelectionEvents Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "SelectionChanged. Event(s)."<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub<BR></DIV><DIV>Btw - you can make a post about new tooltip-related flag (show tooltip in non-active calendar app) - let's people know</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 01:55:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52484&amp;title=captionbar-doesnt-honor-datepicker-range#52484</guid>
  </item> 
  <item>
   <title><![CDATA[CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range : I definitively need the previous/next...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52483&amp;title=captionbar-doesnt-honor-datepicker-range#52483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 15055<br /><strong>Posted:</strong> 28 August 2009 at 1:45am<br /><br />I definitively need the previous/next buttons. They are very handy! But I use ActiveX under VB6 and I don't see how to restrict the working range of these buttons...]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 01:45:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52483&amp;title=captionbar-doesnt-honor-datepicker-range#52483</guid>
  </item> 
  <item>
   <title><![CDATA[CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range : You can hide this navigation buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52482&amp;title=captionbar-doesnt-honor-datepicker-range#52482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15055<br /><strong>Posted:</strong> 28 August 2009 at 12:28am<br /><br />You can hide this navigation buttons from Caption Bar if you don't need it - may be there is some notification on this button click (please check) - if yes - you can fix user choice in your reaction on notification XTP_NC_CALENDAR_CAPTIONBARPART_BEFORE_CLICK<DIV>&nbsp;</DIV><DIV>with nPartID = </DIV><DIV><FONT size=2><P>xtpCalendarCaptionBar_ScrollPrevDate = 0x00000100, </FONT><FONT color=#008000 size=2>// Defines ScrollDateBar PrevDateButton.</P></FONT><FONT size=2><P>xtpCalendarCaptionBar_ScrollNextDate = 0x00000200, </FONT><FONT color=#008000 size=2>// Defines ScrollDateBar NextDateButton.</P></FONT></DIV><DIV><DIV></DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> CXTPCalendarCaptionBarTheme::OnPartClick(</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nPartID)</DIV><DIV><P>{</P><P>BOOL bCancel = FALSE;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pConnection)</P><P>m_pConnection-&gt;SendEvent(XTP_NC_CALENDAR_CAPTIONBARPART_BEFORE_CLICK, (WPARAM)nPartID, (LPARAM)&amp;bCancel);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (GetCalendarCtrl() &amp;&amp; !bCancel)</P><P>GetCalendarCtrl()-&gt;SendNotification(XTP_NC_CALENDAR_CAPTIONBARPART_BEFORE_CLICK, (WPARAM)nPartID, (LPARAM)&amp;bCancel);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (bCancel)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 00:28:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52482&amp;title=captionbar-doesnt-honor-datepicker-range#52482</guid>
  </item> 
  <item>
   <title><![CDATA[CaptionBar &lt;-&gt; doesn&#039;t honor datepicker range : If I set the range of dates of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52450&amp;title=captionbar-doesnt-honor-datepicker-range#52450</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 15055<br /><strong>Posted:</strong> 27 August 2009 at 8:44am<br /><br /><P>If I set the range of dates of the datepicker control and link this datepicker control to the calendar control all works perfect. But one minor problem is, that the user is able to ignore these settings by clicking the caption bars prev. / next buttons.</P><DIV>Is there a property that I don't found or an other (simple) method to restrict the caption bars scrolling range?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks for any idea</DIV><DIV>&nbsp;</DIV><DIV>Using V13.1.0 unde VB6/SP6</DIV>]]>
   </description>
   <pubDate>Thu, 27 Aug 2009 08:44:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15055&amp;PID=52450&amp;title=captionbar-doesnt-honor-datepicker-range#52450</guid>
  </item> 
 </channel>
</rss>