<?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 : [solved] Second text line (ev note) rendered wrong</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : [solved] Second text line (ev note) rendered wrong]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 18:48:19 +0000</pubDate>
  <lastBuildDate>Thu, 30 Aug 2018 11:54:03 +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=23412</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[[solved] Second text line (ev note) rendered wrong : Hi Arte,thanks a lot, your hotfix...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=77001&amp;title=solved-second-text-line-ev-note-rendered-wrong#77001</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 23412<br /><strong>Posted:</strong> 30 August 2018 at 11:54am<br /><br /><div>Hi Arte,</div><div><br></div><div>thanks a lot, your hotfix is working fine and solved the problem!</div><div><br></div><div>Best regards,</div><div>Marco</div><div><br> </div>]]>
   </description>
   <pubDate>Thu, 30 Aug 2018 11:54:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=77001&amp;title=solved-second-text-line-ev-note-rendered-wrong#77001</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Second text line (ev note) rendered wrong : Hello,I&amp;#039;m glad to inform...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=76991&amp;title=solved-second-text-line-ev-note-rendered-wrong#76991</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23412<br /><strong>Posted:</strong> 27 August 2018 at 8:33am<br /><br /><div>Hello,</div><div><br></div><div>I'm glad to inform you that the issue has been addressed and fixed. The fix <br>will be available in the next beta or final release.</div><div>As hotfix you should be replace function as below:<br></div><div><br></div><div>CSize CXTPCalendarThemeOffice2007::DrawText_Auto2SL3ML(CDC* pDC,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LPCTSTR pcszText1, LPCTSTR pcszText2, LPCTSTR pcszText3,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CThemeFontColorSet* pFontColor1, CThemeFontColorSet* pFontColor2,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CThemeFontColorSet* pFontColor3,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CRect&amp; rcRect, LPCTSTR pcszText1Separator, UINT uWordBreakMode)<br><br>{<br>&nbsp;&nbsp;&nbsp; CXTPFontDC autoFont(pDC, pFontColor1-&gt;Font());<br>&nbsp;&nbsp;&nbsp; CSize szSubject = pDC-&gt;GetTextExtent(pcszText1);<br><br>&nbsp;&nbsp;&nbsp; autoFont.SetFont(pFontColor2-&gt;Font());<br>&nbsp;&nbsp;&nbsp; CSize szLocation = pDC-&gt;GetTextExtent(pcszText2);<br><br>&nbsp;&nbsp;&nbsp; autoFont.SetFont(pFontColor3-&gt;Font());<br>&nbsp;&nbsp;&nbsp; CSize szBody = pDC-&gt;GetTextExtent(pcszText3);<br><br>&nbsp;&nbsp;&nbsp; if ((szSubject.cy + szLocation.cy + XTP_DPI_Y(1)) &gt; rcRect.Height())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strText1 = pcszText1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (_tcslen(pcszText2) &gt; 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strText1 += pcszText1Separator;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return DrawLine2_CenterLR(pDC, strText1, pcszText2, pFontColor1,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pFontColor2, rcRect, DT_VCENTER | DT_LEFT, DT_VCENTER | DT_LEFT);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; UINT uFormat = DT_NOPREFIX | DT_LEFT | DT_TOP | DT_EDITCONTROL | uWordBreakMode;<br>&nbsp;&nbsp;&nbsp; CRect rcText(rcRect);<br>&nbsp;&nbsp;&nbsp; int nHeight = 0;<br><br>&nbsp;&nbsp;&nbsp; if (pcszText1 &amp;&amp; _tcslen(pcszText1))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcText.top = min(rcText.top, rcRect.bottom);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (rcRect.bottom - rcText.top &gt;= szSubject.cy)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoFont.SetFontColor(pFontColor1-&gt;Font(), pFontColor1-&gt;Color());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nSubjectHeight = pDC-&gt;DrawText(pcszText1, &amp;rcText, uFormat);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcText.top += nSubjectHeight + szSubject.cy / 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nHeight += nSubjectHeight + szSubject.cy / 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (pcszText2 &amp;&amp; _tcslen(pcszText2))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcText.top = min(rcText.top, rcRect.bottom);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (rcRect.bottom - rcText.top &gt;= szLocation.cy)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoFont.SetFontColor(pFontColor2-&gt;Font(), pFontColor2-&gt;Color());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nLocationHeight = pDC-&gt;DrawText(pcszText2, &amp;rcText, uFormat);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcText.top += nLocationHeight + szLocation.cy / 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nHeight += nLocationHeight + szLocation.cy / 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (pcszText3 &amp;&amp; _tcslen(pcszText3))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcText.top = min(rcText.top, rcRect.bottom);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (rcRect.bottom - rcText.top &gt;= szBody.cy)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoFont.SetFontColor(pFontColor3-&gt;Font(), pFontColor3-&gt;Color());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nBodyHeight = pDC-&gt;DrawText(pcszText3, &amp;rcText, uFormat);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcText.top += nBodyHeight + szBody.cy / 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nHeight += nBodyHeight + szBody.cy / 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return CSize(rcRect.Width(), nHeight);<br>}</div><div><br></div><div>Regards,</div><div>Artem Gontarenko<br></div>]]>
   </description>
   <pubDate>Mon, 27 Aug 2018 08:33:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=76991&amp;title=solved-second-text-line-ev-note-rendered-wrong#76991</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Second text line (ev note) rendered wrong : This is still NOT fixed in 18.5.0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=76985&amp;title=solved-second-text-line-ev-note-rendered-wrong#76985</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 23412<br /><strong>Posted:</strong> 17 August 2018 at 7:58am<br /><br /><div>This is still NOT fixed in 18.5.0 and still annoying.</div><div>Can you pls create a fix!</div><div>Or do I have to open a support request?</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 17 Aug 2018 07:58:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=76985&amp;title=solved-second-text-line-ev-note-rendered-wrong#76985</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Second text line (ev note) rendered wrong : After updating to latest v18.0.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=76017&amp;title=solved-second-text-line-ev-note-rendered-wrong#76017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 23412<br /><strong>Posted:</strong> 09 August 2017 at 11:05am<br /><br />After updating to latest v18.0.1 we have in the calendar:<br><br><img src="uploads/313/Calendar_drawing.PNG" height="228" width="386" border="0" /><br><br>Tested in your calendar demo sample.<br>The second line (event note) should not be rendered if it doesn't fit in the event cell. Really annoying with a lot of events. This happens in Office 2007 and 2010 themes.<br><br>Please fix this and posting of a short patch here would be very kind!<br>Thanx!<br><br>]]>
   </description>
   <pubDate>Wed, 09 Aug 2017 11:05:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23412&amp;PID=76017&amp;title=solved-second-text-line-ev-note-rendered-wrong#76017</guid>
  </item> 
 </channel>
</rss>