<?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 : DatePicker DayMetrics</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : DatePicker DayMetrics]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 17 May 2026 05:37:53 +0000</pubDate>
  <lastBuildDate>Wed, 19 Dec 2012 03:06:45 +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=7410</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[DatePicker DayMetrics : No it hasn&amp;#039;t.   I only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=69446&amp;title=datepicker-daymetrics#69446</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 7410<br /><strong>Posted:</strong> 19 December 2012 at 3:06am<br /><br />No it hasn't. <DIV>&nbsp;</DIV><DIV>I only need to read my db once or when the user changes the month so I was doing this:</DIV><DIV>Private Sub DatePicker1_DayMetrics(ByVal Day As Date, ByVal Metrics As XtremeCalendarControl.IDatePickerDayMetrics)</DIV><DIV>Dim rst As ADODB.RecordSet<BR>Set rst = New ADODB.RecordSet</DIV><DIV><BR>' query db based on day.<BR></DIV><DIV>If Not rst.EOF Then</DIV><DIV>&nbsp;&nbsp;&nbsp; rst.MoveFirst</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Do</DIV><DIV>&nbsp;&nbsp;&nbsp; Metrics.Font.Bold = True<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; rst.MoveNext<BR>&nbsp;&nbsp;&nbsp; Loop Until rst.EOF</DIV><DIV>End If</DIV><DIV>&nbsp;</DIV><DIV>rst.Close</DIV><DIV><BR>If Day = Me.DatePicker1.LastVisibleDay Then Me.DatePicker1.AskDayMetrics = False </DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>now i would have thought that if day equals the last visible day I could turn off the metrics. Yes that works. until the control loses focus then all the dates disappear. Also you have to load the form with metrics on. Explicity turning back on the metrics does not refresh the dates and you have to manually select the control with the mouse and use a DatePicker1.AskDayMetrics = True in the .selectionchanged event. Not good! Perhaps Larry you could try modifying my code and share if you fix it. Cheers</DIV>]]>
   </description>
   <pubDate>Wed, 19 Dec 2012 03:06:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=69446&amp;title=datepicker-daymetrics#69446</guid>
  </item> 
  <item>
   <title><![CDATA[DatePicker DayMetrics :   This issue is driving me insane....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=69235&amp;title=datepicker-daymetrics#69235</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5184">LarryInCanada</a><br /><strong>Subject:</strong> 7410<br /><strong>Posted:</strong> 14 November 2012 at 12:39pm<br /><br /><div></div>This issue is driving me insane.&nbsp;&nbsp;<img src="http://forum.codejock.com/smileys/smiley5.gif" height="17" width="17" border="0" alt="C&#111;nfused" title="C&#111;nfused" /> <div></div><div>I want to be able to run the Day Metrics one single ime, and then set it so id does not re-run.&nbsp; I know this post is 7 or 8 years old, so I am hoping to god that this has finally been addressed????</div><div>&nbsp;</div><div>Someone, anyone, please help me out here......</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 14 Nov 2012 12:39:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=69235&amp;title=datepicker-daymetrics#69235</guid>
  </item> 
  <item>
   <title><![CDATA[DatePicker DayMetrics : Currently DayMetrics asked for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=24278&amp;title=datepicker-daymetrics#24278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7410<br /><strong>Posted:</strong> 06 July 2007 at 5:45pm<br /><br />Currently DayMetrics asked for each control's redraw for each visible day. <br>This operation assumed to be fast and lightweight. <br><br>And yes, metrics object is created and destroyed for each method call.<br><br>It could be still visible, but it's size, font or position could be already changed for a moment of redraw.<br><br>Certainly additional improvements could be added like some caching, but this is a target for future versions.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Fri, 06 Jul 2007 17:45:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=24278&amp;title=datepicker-daymetrics#24278</guid>
  </item> 
  <item>
   <title><![CDATA[DatePicker DayMetrics : It&amp;#039;s worse than I thought....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=23823&amp;title=datepicker-daymetrics#23823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1446">apuhjee</a><br /><strong>Subject:</strong> 7410<br /><strong>Posted:</strong> 19 June 2007 at 8:44pm<br /><br /><P>It's worse than I thought.&nbsp; Several things seem to cause every single day to refire the DayMetrics event:</P><DIV>1) Change selected date</DIV><DIV>2) Change to another month</DIV><DIV>3) MouseEnter Today button</DIV><DIV>4) MouseLeave Today button</DIV><DIV>5) MouseEnter None button</DIV><DIV>6) MouseLeave None button</DIV><DIV>&nbsp;</DIV><DIV>That pretty much renders this event completely unusable - thus eliminating the ability to modify DatePicker font style.</DIV><DIV>&nbsp;</DIV><DIV>Please - someone chime in here and tell me I'm crazy.&nbsp; Why would I want to refresh font metrics for something that's still visible on the screen?</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 20:44:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=23823&amp;title=datepicker-daymetrics#23823</guid>
  </item> 
  <item>
   <title><![CDATA[DatePicker DayMetrics : Let&amp;#039;s assume that it does......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=23813&amp;title=datepicker-daymetrics#23813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1446">apuhjee</a><br /><strong>Subject:</strong> 7410<br /><strong>Posted:</strong> 19 June 2007 at 4:09pm<br /><br />Let's assume that it does...&nbsp; let's also assume that the process needed to determine the metrics is non-trivial.&nbsp; Two questions:<DIV>&nbsp;</DIV><DIV>1)&nbsp; Is there a way to update the metrics once, then set AskDayMetrics = false until the months displayed change?&nbsp; I guess another way of asking this would be:&nbsp; Is there a way to determine when the control has finished updating...?</DIV><DIV>&nbsp;</DIV><DIV>2)&nbsp; Is the&nbsp;metrics object being destroyed after&nbsp;the event handler exits?&nbsp; I've tried passing this object on to a non-blocking handler... but modifications to that object are not reflected in the control.</DIV><DIV>&nbsp;</DIV><DIV>jp&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 16:09:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=23813&amp;title=datepicker-daymetrics#23813</guid>
  </item> 
  <item>
   <title><![CDATA[DatePicker DayMetrics : Is this event fired for all visible...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=23812&amp;title=datepicker-daymetrics#23812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1446">apuhjee</a><br /><strong>Subject:</strong> 7410<br /><strong>Posted:</strong> 19 June 2007 at 3:39pm<br /><br />Is this event fired for all visible days every time the selection is changed? <DIV>&nbsp;</DIV><DIV>jp</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 15:39:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7410&amp;PID=23812&amp;title=datepicker-daymetrics#23812</guid>
  </item> 
 </channel>
</rss>