<?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 : Issue with Date Picker - SetAutoSize(TRUE)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Issue with Date Picker - SetAutoSize(TRUE)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 20:19:34 +0000</pubDate>
  <lastBuildDate>Tue, 10 Mar 2009 08:07:58 +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=12230</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[Issue with Date Picker - SetAutoSize(TRUE) : Unfortunately this algo it not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=46481&amp;title=issue-with-date-picker-setautosizetrue#46481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 10 March 2009 at 8:07am<br /><br />Unfortunately this algo it not works properly in many cases. <DIV>I modified it and add new function </DIV><FONT size=2><P></FONT><FONT color=#008000 size=2>//allow scrolling between FirstDay and LastDay and try to show initial visible range between FirstVisibleDay and LastVisibleDay</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>virtual</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> SetDesiredVisibleAndFullRange(COleDateTime FirstVisibleDay, COleDateTime LastVisibleDay, </P><P>COleDateTime FirstDay, COleDateTime LastDay);</P><DIV></DIV><P>and modified version of <FONT color=#0000ff size=2>virtual</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> SetGridSize(</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nRows, </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nCols, BOOL bRestrictMode = FALSE);</P><DIV></FONT><FONT size=2><P>if bRestrictMode Picker keep&nbsp;given matrix&nbsp;nRows&nbsp;x<FONT size=2> nCols as max for layout</FONT></P></FONT>Be in Release 13.1</DIV><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 10 Mar 2009 08:07:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=46481&amp;title=issue-with-date-picker-setautosizetrue#46481</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Thanks Oleg, It worked :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41515&amp;title=issue-with-date-picker-setautosizetrue#41515</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 30 September 2008 at 9:33am<br /><br /><P>Thanks Oleg,</P><P>It worked :)</P>]]>
   </description>
   <pubDate>Tue, 30 Sep 2008 09:33:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41515&amp;title=issue-with-date-picker-setautosizetrue#41515</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Hi,  Lets patch CSize CXTPDa...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41507&amp;title=issue-with-date-picker-setautosizetrue#41507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 30 September 2008 at 6:22am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Lets patch CSize CXTPDatePickerControl::SetGridDimentions(CRect rcClient) method for 12 months case:</DIV><DIV>&nbsp;</DIV><DIV>add this </DIV><DIV>if (nTotalMaxRangeMonths == 12 &amp;&amp; m_nColumns &gt;= 6 &amp;&amp; m_nRows &gt;= 2)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;m_nColumns = 6;<BR>&nbsp;&nbsp;&nbsp;&nbsp;m_nRows = 2;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>before while (m_nRows * m_nColumns &gt; nTotalMaxRangeMonths).</DIV>]]>
   </description>
   <pubDate>Tue, 30 Sep 2008 06:22:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41507&amp;title=issue-with-date-picker-setautosizetrue#41507</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Hello,  I checked code and actually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41506&amp;title=issue-with-date-picker-setautosizetrue#41506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 30 September 2008 at 6:18am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I checked code and actually it is designed :(&nbsp; Don't use SerRange if you don't need it</DIV><DIV>. Second row need show same months but it will go out your range.</DIV>]]>
   </description>
   <pubDate>Tue, 30 Sep 2008 06:18:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41506&amp;title=issue-with-date-picker-setautosizetrue#41506</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Hello CJ Team,  Can you please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41491&amp;title=issue-with-date-picker-setautosizetrue#41491</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 30 September 2008 at 12:29am<br /><br />Hello CJ Team,<DIV>&nbsp;</DIV><DIV>Can you please provide feedback over the sample that i have attached?</DIV>]]>
   </description>
   <pubDate>Tue, 30 Sep 2008 00:29:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41491&amp;title=issue-with-date-picker-setautosizetrue#41491</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Here is the source code attach...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41377&amp;title=issue-with-date-picker-setautosizetrue#41377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 25 September 2008 at 4:16am<br /><br />Here is the source code attached&nbsp;<a href="uploads/20080925_041557_Test-Code.zip" target="_blank">uploads/20080925_041557_Test-Code.zip</a>]]>
   </description>
   <pubDate>Thu, 25 Sep 2008 04:16:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41377&amp;title=issue-with-date-picker-setautosizetrue#41377</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Please find the code attached...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41376&amp;title=issue-with-date-picker-setautosizetrue#41376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 25 September 2008 at 4:13am<br /><br /><b><font color="#3300cc">Please find the code attached and also the .exe file.</font></b><br><br>If you execute this and try to resize the window (which contains a date picker control), then you can reproduce the problem of resizing.<br><br>When you maximize the windows, it only shows one row for months, where actually there is ample space to display 12 months.<br><br><b>Works fine in following case :</b><br><img src="uploads/20080925_040904_test_med_size.JPG" height="998" width="1280" border="0"><br><br><br><b>NOT WORKING in following case :</b><br><br><img src="uploads/20080925_041032_test_max_size.JPG" height="998" width="1280" border="0"><br><a href="uploads/20080925_041324_TestEXE.zip" target="_blank">uploads/20080925_041324_TestEXE.zip</a><br>]]>
   </description>
   <pubDate>Thu, 25 Sep 2008 04:13:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41376&amp;title=issue-with-date-picker-setautosizetrue#41376</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : Hi, Maybe you call SetAutoSize(FALSE)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41312&amp;title=issue-with-date-picker-setautosizetrue#41312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 23 September 2008 at 2:22am<br /><br />Hi,<DIV>Maybe you call SetAutoSize(FALSE) later&nbsp;?&nbsp; Can't reproduce it with our sample :(</DIV>]]>
   </description>
   <pubDate>Tue, 23 Sep 2008 02:22:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41312&amp;title=issue-with-date-picker-setautosizetrue#41312</guid>
  </item> 
  <item>
   <title><![CDATA[Issue with Date Picker - SetAutoSize(TRUE) : I am using SetAutoSize(TRUE).Now...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41273&amp;title=issue-with-date-picker-setautosizetrue#41273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 12230<br /><strong>Posted:</strong> 22 September 2008 at 8:24am<br /><br />I am using SetAutoSize(TRUE).<br>Now when i resize the window to a normal size it looks like<br><br><img src="uploads/20080922_082034_calendar_year_m.JPG" height="618" width="573" border="0"><br><br>Now if i resize this to medium size it looks like :<br><br><img src="uploads/20080922_082139_calendar_year_m.JPG" height="491" width="628" border="0"><br><br>The PROBLEM IS WITH THE FOLLOWING:<br>If i resize it to a max size, then i can see only 1 line of minimonths...when actually i expect it to be filled properly and show me 12 months (which is my range) . WHAT should i do to see the 12 months in this size ???<br><img src="uploads/20080922_082311_calendar_year_m.JPG" height="475" width="628" border="0"><br>]]>
   </description>
   <pubDate>Mon, 22 Sep 2008 08:24:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12230&amp;PID=41273&amp;title=issue-with-date-picker-setautosizetrue#41273</guid>
  </item> 
 </channel>
</rss>