<?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 : Best Fit</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Best Fit]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:00:29 +0000</pubDate>
  <lastBuildDate>Wed, 15 Feb 2006 09:22:57 +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=2665</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[Best Fit : Oleg,Yes, that does get rid of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=11001&amp;title=best-fit#11001</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 15 February 2006 at 9:22am<br /><br />Oleg,<br><br>Yes, that does get rid of the "..." (which is a definite improvement), but it comes at the expense of not drawing the sort triangle (without which, it is really hard to tell what's going on)<br><br>I think the "best-fit" column width (for a sortable column) should include the width of the sort-triangle. Don't you agree?<br>(at the very least it would be nice for this to be an option<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0">)<br><span style="font-family: Courier New,Courier,mono;"></span><br>Sorry, in my suggested code above, I meant to say "IsSortable" by I wrote "IsResizable" when I was typing it in here.<span style="font-family: Courier New,Courier,mono;">(That's got to be a record, I suggest one line of code and it has a bug <img src="http://forum.codejock.com/smileys/smiley9.gif" border="0">) It should read:</span><br><br>replace the line:<br><span style="font-family: Courier New,Courier,mono;">if (HasSortTriangle())<br></span>with the line:<span style="font-family: Courier New,Courier,mono;"><br>if (IsSortable())<br><br><br></span>]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 09:22:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=11001&amp;title=best-fit#11001</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : Hello, You can call wndRepor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=10995&amp;title=best-fit#10995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 15 February 2006 at 8:01am<br /><br /><P>Hello,</P><P>You can call</P><P>wndReport.GetPaintManager()-&gt;m_bDrawSortTriangleAlways = FALSE;</P><P>so it will acts exactly like in Office</P>]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 08:01:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=10995&amp;title=best-fit#10995</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : I&amp;#039;d like to re-open this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=10980&amp;title=best-fit#10980</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 14 February 2006 at 7:44pm<br /><br />I'd like to re-open this issue once more (I'm using 9.81 right now). The best-fit still causes the name to get cut off, and the "..." toappear<br><br>To duplicate the behaviour (in the 9.81 version of the samples)<br>Codejock Samples -&gt; Report Sample -&gt; Report Control Menu -&gt; Task List Dialog<br>1) Click on the "Subject" header, so the sort triangle shows up on the "subject" column. <br>2) Now "double-click resize" the "% Complete" Column (by double-clicking the right edge of the column)<br>3) Now click on the "% Complete" header, so the sort arrow shows up on the "% Complete" header.<br>Result: "% Complete" name is now "% Co..."<br><br>From looking at your source, I suggest the following:<br>in file: "xtpreportcolumn.cpp"<br>in function: "int CXTPReportColumn::GetBestFitWidth() const"<br><br>replace the line:<br><span style="font-family: Courier New,Courier,mono;">if (HasSortTriangle())<br></span>with the line:<span style="font-family: Courier New,Courier,mono;"><br>if (IsResizable())<br></span><br>Since the sort triangle may show up after the column has been best-fit sized.<br><br>Thanks<br><br>Warren<br>]]>
   </description>
   <pubDate>Tue, 14 Feb 2006 19:44:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=10980&amp;title=best-fit#10980</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : Thakn you, good suggestion,  fixed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=9572&amp;title=best-fit#9572</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 11 November 2005 at 3:11am<br /><br /><P>Thakn you, good suggestion, </P><P>fixed for 9.81</P>]]>
   </description>
   <pubDate>Fri, 11 Nov 2005 03:11:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=9572&amp;title=best-fit#9572</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : I&amp;#039;d like to re-open this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=9561&amp;title=best-fit#9561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 10 November 2005 at 5:20pm<br /><br />I'd like to re-open this issue.<br><br>The Column-sizing algorithm doesn't seem to take into account the Widthof Column Title. This causes the name to get cut off, and the "..." toappear when the Name of the Column is wider than any of the contents.<br><br>To duplicate the behaviour (in the 9.80 version of the samples)<br>Codejock Samples -&gt; Report Sample -&gt; Report Control Menu -&gt; Task List Dialog<br>and "double-click resize" on the "% Complete" Column.<br><br>I'd also like the algorithm to take into account the width of thelittle sort-direction arrow that shows up too (so sorting the columndoesn't cause the name to get cut off either).<br><br>Thanks !<br><br>Warren<br><br>I'm using Toolkit Pro v9.80, with Visual Studio 2003 writing a MFC app, on a XP computer, with the default set of fonts.<br>]]>
   </description>
   <pubDate>Thu, 10 Nov 2005 17:20:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=9561&amp;title=best-fit#9561</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : Thanks for looking into this so...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=7953&amp;title=best-fit#7953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 01 August 2005 at 7:47am<br /><br />Thanks for looking into this so quickly! The support for this product is just great.<br><br>Thanks for also adding the feature I was about to suggest:<br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />...also added Double Click on Risize part&nbsp;to BestFit.</td></tr></table><br>before I even got a chance to suggest it (psychic support ?!?!)<br><br>Warren<br>]]>
   </description>
   <pubDate>Mon, 01 Aug 2005 07:47:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=7953&amp;title=best-fit#7953</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : Thank you, it is fixed for 9.71,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=7949&amp;title=best-fit#7949</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 01 August 2005 at 5:09am<br /><br />Thank you, it is fixed for 9.71, also added Double Click on Risize part&nbsp;to BestFit.]]>
   </description>
   <pubDate>Mon, 01 Aug 2005 05:09:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=7949&amp;title=best-fit#7949</guid>
  </item> 
  <item>
   <title><![CDATA[Best Fit : I&amp;#039;m having trouble with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=7940&amp;title=best-fit#7940</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2665<br /><strong>Posted:</strong> 31 July 2005 at 4:24pm<br /><br />I'm having trouble with the Best Fit feature of the Report Control. Thebest fit function makes the column width a few pixels too narrow. Thiscauses the "..." ellipses to be used when the item is drawn.&nbsp; <br><br>The problem exists in my application, and also in the "ReportSample"sample (use the best fit feature on the "Recieved" column - or anycolumn except the last column). <br>For Example:<img src="uploads/Warren/2005-07-31_161931_too_narrow.PNG" border="0"><br><br><br>I'm using Toolkit Pro v9.60, with Visual Studio 2003 writing a MFC app, on a XP computer, with the default set of fonts.<br><br>BTW --&gt; Typo: the "Recieved" column should be "Received" in the sample<br><br>Thanks<br><br>Warren<br>]]>
   </description>
   <pubDate>Sun, 31 Jul 2005 16:24:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2665&amp;PID=7940&amp;title=best-fit#7940</guid>
  </item> 
 </channel>
</rss>