<?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 : Bug when scrolling whole day selection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Bug when scrolling whole day selection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 02:38:52 +0000</pubDate>
  <lastBuildDate>Fri, 23 Mar 2007 16:55:32 +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=6721</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[Bug when scrolling whole day selection : Hi;  I think that I found a bug...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6721&amp;PID=21413&amp;title=bug-when-scrolling-whole-day-selection#21413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6721<br /><strong>Posted:</strong> 23 March 2007 at 4:55pm<br /><br />Hi; <DIV>I think that I found a bug in calendar control of toolkit version 10.4.2 when scrolling full day selections in workweek or day view mode. To reproduce create a calendar control in workweek view, add two or three additional days, disable horizontal scrolling.</DIV><DIV>Select one full day and then use the cursor left/right keys to scroll the selection. When scrolling to the left, the selection goes out of the view. In the opposite, when scrolling to the right, it's impossible to select the rightmost day.</DIV><DIV>&nbsp;</DIV><DIV>Here's a brief code sequence for how I create the day view:</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>GetCalendarCtrl().SetWorkDayStartTime(0,0,0);<BR>GetCalendarCtrl().SetWorkDayEndTime(23,59,59);<BR>GetCalendarCtrl().GetActiveView()-&gt;EnableHScroll(FALSE);</FONT></DIV><DIV><FONT size=2>CXTPCalendarThemeOffice2007* pTheme = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> CXTPCalendarThemeOffice2007();</FONT></DIV><DIV><FONT size=2>pTheme-&gt;SetAskItemTextFlags(xtpCalendarItemText_DayViewDayHeaderLeft|</FONT><FONT size=2>xtpCalendarItemText_DayViewDayHeaderCenter|xtpCalendarItemText_DayViewDayHeaderRight);</FONT></DIV><DIV><FONT size=2>GetCalendarCtrl().SetTheme(pTheme);</FONT></DIV><DIV><FONT size=2>CXTPCalendarDayView* pDayView=</FONT><FONT color=#0000ff size=2>reinterpret_cast</FONT><FONT size=2>&lt;CXTPCalendarDayView*&gt;(GetCalendarCtrl().GetActiveView());</FONT></DIV><DIV><FONT size=2>COleDateTime dtEnd=COleDateTime::GetCurrentTime();</FONT></DIV><DIV><FONT size=2>COleDateTime dtStart=dt-COleDateTimeSpan(10,0,0,0);</FONT></DIV><DIV><FONT size=2>dtEnd-=COleDateTimeSpan(1,0,0,0);</FONT></DIV><DIV><FONT size=2>GetCalendarCtrl().SetWorkWeekMask(xtpCalendarDayAllWeek);</FONT></DIV><DIV><FONT size=2>GetCalendarCtrl().SwitchActiveView(xtpCalendarWorkWeekView);</FONT></DIV><DIV><FONT size=2>pDayView-&gt;ShowDays(dt1, dt);</FONT></DIV><DIV><FONT size=2>GetCalendarCtrl().GetCalendarOptions()-&gt;bDayView_TimeScaleShowMinutes=TRUE;</FONT></DIV><DIV><FONT size=2>GetCalendarCtrl().GetCalendarOptions()-&gt;nDayView_CurrentTimeMarkVisible=xtpCalendarCurrentTimeMarkNone;</FONT></DIV><DIV><FONT size=2>GetCalendarCtrl().GetCalendarOptions()-&gt;nDayView_ScaleInterval=15;</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>The same bug can be reproduced when using the CalendarDemo sample by modifying the OnCalendarViewWorkWeek() function. <BR>Add </FONT></DIV><DIV><FONT size=2><FONT size=2><strong>GetCalendarCtrl().GetActiveView()-&gt;EnableHScroll(FALSE);</strong> <BR>right after swithing&nbsp;the view. The select the whole day by clicking just below the date caption and the try to move the selection to the left and right...</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>On the other hand, perhaps I'm doing something wrong, when setting up the calendar view? In any case, I need a fix for this problem; so help is most welcome.</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 23 Mar 2007 16:55:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6721&amp;PID=21413&amp;title=bug-when-scrolling-whole-day-selection#21413</guid>
  </item> 
 </channel>
</rss>