<?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 : [PARTIALLY SOLVED] BUG: BestFit and vbNewline</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [PARTIALLY SOLVED] BUG: BestFit and vbNewline]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:42:56 +0000</pubDate>
  <lastBuildDate>Fri, 26 Feb 2010 17:03:59 +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=14059</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[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : Will the tooltip be multi-line...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=57155&amp;title=partially-solved-bug-bestfit-and-vbnewline#57155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 26 February 2010 at 5:03pm<br /><br />Will the tooltip be multi-line aware for the next release?<br><br>]]>
   </description>
   <pubDate>Fri, 26 Feb 2010 17:03:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=57155&amp;title=partially-solved-bug-bestfit-and-vbnewline#57155</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : RIght - it should be next step...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56489&amp;title=partially-solved-bug-bestfit-and-vbnewline#56489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 30 January 2010 at 8:23pm<br /><br />RIght - it should be next step - tooltip can be multilined]]>
   </description>
   <pubDate>Sat, 30 Jan 2010 20:23:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56489&amp;title=partially-solved-bug-bestfit-and-vbnewline#56489</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : Sorry Mark, I didn&amp;#039;t see...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56485&amp;title=partially-solved-bug-bestfit-and-vbnewline#56485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 30 January 2010 at 12:48pm<br /><br />Sorry Mark, I didn't see the post with the rebuild - I've tested it and BestFit is performing nicely for all my tests so far, thank you very much.<br><br>A side note though - the algorithm that decides whether or not to show tooltip based on the width of the text isn't taking newlines into account, so the automatic tooltip is showing for multi-line items even when all the text appears within the cell boundaries. The automatic tooltip also displays newline characters as boxes instead of wrapping to a new line. <br><br>You can kind of work around this by setting the Tooltip property of the recorditem to the recorditem value. This tooltip supports newlines by rendering each line separately. The only issues with this method are that the tooltip always shows on mouse hover, and the tooltip doesn't show over the cell like the automatic tooltip does (it is tracked to the mouse pointer position instead of the cell boundaries).<br>]]>
   </description>
   <pubDate>Sat, 30 Jan 2010 12:48:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56485&amp;title=partially-solved-bug-bestfit-and-vbnewline#56485</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : Sure - https://forum.codejock....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56454&amp;title=partially-solved-bug-bestfit-and-vbnewline#56454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 29 January 2010 at 9:23am<br /><br />Sure - <a href="https://forum.codejock.com/uploads/BetaOCX/CalendarBeta14.rar" target="_blank">https://forum.codejock.com/uploads/BetaOCX/CalendarBeta14.rar</A>]]>
   </description>
   <pubDate>Fri, 29 Jan 2010 09:23:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56454&amp;title=partially-solved-bug-bestfit-and-vbnewline#56454</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : Do you have also a Beta for CalendarControl?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56444&amp;title=partially-solved-bug-bestfit-and-vbnewline#56444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2660">McKloony</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 29 January 2010 at 3:50am<br /><br />Do you have also a Beta for CalendarControl?]]>
   </description>
   <pubDate>Fri, 29 Jan 2010 03:50:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56444&amp;title=partially-solved-bug-bestfit-and-vbnewline#56444</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : Please try update: https://for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56440&amp;title=partially-solved-bug-bestfit-and-vbnewline#56440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 29 January 2010 at 2:11am<br /><br />Please try update: <a href="https://forum.codejock.com/uploads/BetaOCX/ReportC&#111;ntrolBeta14.rar" target="_blank">https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta14.rar</A>]]>
   </description>
   <pubDate>Fri, 29 Jan 2010 02:11:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56440&amp;title=partially-solved-bug-bestfit-and-vbnewline#56440</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : You right - need to fix this....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56439&amp;title=partially-solved-bug-bestfit-and-vbnewline#56439</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 29 January 2010 at 12:25am<br /><br />You right - need to fix this. Btw - I mean Excel 2003 of course.]]>
   </description>
   <pubDate>Fri, 29 Jan 2010 00:25:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56439&amp;title=partially-solved-bug-bestfit-and-vbnewline#56439</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : It&amp;#039;s not so much a DrawText/MS...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56436&amp;title=partially-solved-bug-bestfit-and-vbnewline#56436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 28 January 2010 at 6:12pm<br /><br />It's not so much a DrawText/MS complaint as a BestFit/Codejock RCcomplaint. The method is called BestFit, and it clearly doesn'tcalculate the best fit for the cell. If DrawText wasn't designed tohandle newlines in its calculationroutines, then it is the incorrect choice for calculating text for anobject that supports newline characters. There are simple methods tocalculate the best fit for plain text (one approach was mentionedabove). <br><br>Other grids handle it fine (including VSFlexGrid OCX, OpenOffice.orgCalc). And, contrary to what you claim, Excel 2007 calculates best fitwith newlines properly too, so your statement about Excel is incorrectat least for contemporary versions of the program.<br><br>Excel 2007 after double-clicking the column divider (i.e. calculating best fit for column):<br><img src="uploads/20100128_180322_Excel2007.jpg" height="290" width="381" border="0"><br><br><br>VSFlexGrid OCX using the AutoSize method (i.e. Calculating best fit for a column):<br><br><img src="uploads/20100128_180503_VSFlexGrid.jpg" height="283" width="335" border="0"><br><br><br><br>OpenOffice.org after double-clicking the column divider (i.e. calculating best fit for column):<br><img src="uploads/20100128_180648_OpenOffice.jpg" height="240" width="456" border="0"><br><br><br><br>Codejock ReportControl after calling BestFit on a column with RecordItems that have newline characters:<br><img src="uploads/20100128_180831_CJRC.jpg" height="433" width="701" border="0"><br><br>It's obvious which one is the odd man out, and which one is exhibiting unexpected behaviour. It seems excessive to have to add the overhead of Markup to an RC that otherwise doesn't require markup just to get expected best fit behaviour.<br>]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 18:12:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56436&amp;title=partially-solved-bug-bestfit-and-vbnewline#56436</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : Btw - this is Excel style of cell...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56430&amp;title=partially-solved-bug-bestfit-and-vbnewline#56430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 28 January 2010 at 3:05pm<br /><br />Btw - this is Excel style of cell text draw]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 15:05:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56430&amp;title=partially-solved-bug-bestfit-and-vbnewline#56430</guid>
  </item> 
  <item>
   <title><![CDATA[[PARTIALLY SOLVED] BUG: BestFit and vbNewline : DrawText complains should go to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56429&amp;title=partially-solved-bug-bestfit-and-vbnewline#56429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14059<br /><strong>Posted:</strong> 28 January 2010 at 2:53pm<br /><br />DrawText complains should go to Microsoft I guess. In your case I think you can use markup with will keep extra CR/LF]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 14:53:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14059&amp;PID=56429&amp;title=partially-solved-bug-bestfit-and-vbnewline#56429</guid>
  </item> 
 </channel>
</rss>