<?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 : RecalcScrollBars - Doesn&#039;t.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : RecalcScrollBars - Doesn&#039;t.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 20:09:56 +0000</pubDate>
  <lastBuildDate>Fri, 10 Jun 2016 12:54:50 +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=22827</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[RecalcScrollBars - Doesn&#039;t. : Hello Algae,Thank you for bringing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22827&amp;PID=74800&amp;title=recalcscrollbars-doesnt#74800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22827<br /><strong>Posted:</strong> 10 June 2016 at 12:54pm<br /><br />Hello Algae,<br><br>Thank you for bringing this to our attention.&nbsp;The fix of&nbsp;<span style="line-height: 16.8px; : rgb248, 248, 252;">_RecalcHScrollMaxWidth()</span>&nbsp;<span style="line-height: 1.4;">will be available in the next beta or final release.<br><br>I will look at other issues later.<br><br>Regards,<br>&nbsp;Oleksandr Lebed</span>]]>
   </description>
   <pubDate>Fri, 10 Jun 2016 12:54:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22827&amp;PID=74800&amp;title=recalcscrollbars-doesnt#74800</guid>
  </item> 
  <item>
   <title><![CDATA[RecalcScrollBars - Doesn&#039;t. : This problem has been around for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22827&amp;PID=74248&amp;title=recalcscrollbars-doesnt#74248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22827<br /><strong>Posted:</strong> 27 December 2015 at 2:52pm<br /><br />This problem has been around for awhile. <br><br>RecalculateScrollBars fails to adjust Horizontally after loading more than one file. The thumb size is wrong and the horizontal scroll area does not change.<br><br>The Culprit!<br><br>void CXTPSyntaxEditCtrl::_RecalcHScrollMaxWidth()<br>{<br>&nbsp;&nbsp;&nbsp; CRect rcText = m_pDrawTextProcessor-&gt;GetTextRect();<br>&nbsp;&nbsp;&nbsp; int nPageX = rcText.Width();<br><br>&nbsp;&nbsp;&nbsp; int nMaxX = m_pDrawTextProcessor-&gt;GetRowsMaxWidth();<br>&nbsp;&nbsp;&nbsp; nMaxX += max(nPageX/4, m_pDrawTextProcessor-&gt;GetTextMetrics().tmAveCharWidth * 20);<br>&nbsp;&nbsp;&nbsp; nMaxX = max(nMaxX, rcText.Width() * 2);<br><br>// Replace this line<br>//&nbsp;&nbsp;&nbsp; <b><font color="#CC0033">m_nHScrollMaxWidth = max(nMaxX, m_nHScrollMaxWidth);</font></b><br>// with this and things start to work.<br>&nbsp;&nbsp;&nbsp;<b><font color="#3300FF"> m_nHScrollMaxWidth = nMaxX;</font></b><br>}<br><br>The value of GetRowsMaxWidth() seems to be the right "max" if the text is &gt; client rect width. I have tested a few scenarios with the change and the scrolling appears to function normally.<br><br>To Reproduce:<br><br>1. Use a Static Unicode build.<br>2. Use a dialog containing a SyntaxEditCtrl. I used this method to add the control to the dialog:<br>VERIFY(m_ctrlSynEdit.SubclassDlgItem(IDC_SYNTAX_EDIT, this));<br>3. Load a file that has a really long text line (not wrapped).<br><blockquote>Result: Both scrollbars are calculated properly.<br></blockquote>Load another file with shorter lines than the first file. Do not perform any scrolling.<br><blockquote>Result: The Vertical scrollbar calculates properly but the Horizontal scrollbar does not change. It is still way beyond the text extent of the newly loaded file.<br></blockquote>Load another file with only one short line.<br><blockquote>Result: The Horizontal scrollbar still does not change.<br></blockquote><br>I compared 16.26 against v17.0.0.081715 Beta and it looks pretty much the same so I would say - Not Fixed yet.<br><br>Some other issues with control in dialog. <br><br>1. Doesn't appear to support mouse wheel, you have to add your own handler. <br>2. Context menu handling is clunky and you have to put a lot of effort into making one work. Most would expect context menu handling to be more like an Edit Box.<br>3. The schema handling is not well explained anywhere that I know of.<br>4. Syntax colors do not always display correctly. It's hit or miss.<br><br>I would suggest adding some finishing touches to the editor and provide a dialog based example to the toolkit to bring it to the level of quality expected for CJ controls.<br><br><br>]]>
   </description>
   <pubDate>Sun, 27 Dec 2015 14:52:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22827&amp;PID=74248&amp;title=recalcscrollbars-doesnt#74248</guid>
  </item> 
 </channel>
</rss>