<?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 : 17.2 First pass</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : 17.2 First pass]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 18:25:10 +0000</pubDate>
  <lastBuildDate>Fri, 10 Jun 2016 12:49:33 +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=23003</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[17.2 First pass : ok, I asked because this behavior...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74799&amp;title=17-2-first-pass#74799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 10 June 2016 at 12:49pm<br /><br /><div>ok, I asked because this behavior was introduced more than 9 years ago&nbsp;<img src="http://forum.codejock.com/smileys/smiley29.gif" border="0" alt="Wacko" title="Wacko" /><br>I will fix this.</div>]]>
   </description>
   <pubDate>Fri, 10 Jun 2016 12:49:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74799&amp;title=17-2-first-pass#74799</guid>
  </item> 
  <item>
   <title><![CDATA[17.2 First pass : Current behavior iterates each...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74798&amp;title=17-2-first-pass#74798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 10 June 2016 at 12:29pm<br /><br />Current behavior iterates each line and returns the maximum width of the lines. <br><br>Example: A text file of 100 lines with one really wide line of 2000 characters will return a max width of 2000 + some padding.<br><br>The scroll bar adjusts properly to accommodate.<br><br>However, as you observed, if that line width decreases, say by 100 characters, the max width should shrink to fit but it never does.<br><br>In that case the scroll bar does not adjust correctly as you observed.<br><br>One of my first attempts at fixing the behavior was to set m_nHScrollMaxWidth as you illustrated. <br><br>See this post:<br><br>http://forum.codejock.com/forum_posts.asp?TID=22827&amp;title=recalcscrollbars-doesnt<br><br>I abandoned the change because it seemed to require a lot more calculation and made editing significantly slower.<br><br>]]>
   </description>
   <pubDate>Fri, 10 Jun 2016 12:29:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74798&amp;title=17-2-first-pass#74798</guid>
  </item> 
  <item>
   <title><![CDATA[17.2 First pass : Algae, I see how this works. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74797&amp;title=17-2-first-pass#74797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 10 June 2016 at 5:20am<br /><br />Algae, I see how this works. I asked about current behavior of&nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono; line-height: 16.8px; white-space: pre; : rgb248, 248, 252;">m_nHScrollMaxWidth. It increases everytime when width of text increases, but don't decreases when width of text decreases. That is why </span><span style="font-family: &quot;Courier New&quot;, Courier, mono; line-height: 16.8px; white-space: pre; : rgb248, 248, 252;">m_nHScrollMaxWidth </span><span style="font-family: &quot;Courier New&quot;, Courier, mono; line-height: 16.8px; white-space: pre; : rgb248, 248, 252;">is so large.I propose to change last line in method </span><span style="font-family: &quot;Courier New&quot;, Courier, mono; line-height: 16.8px; : rgb248, 248, 252;">CXTPSyntaxEditCtrl::_RecalcHScrollMaxWidth() with <table width="99%"><tr><td><pre class="BBcode"></span><span style="line-height: 16.8px; font-family: &quot;Courier New&quot;, Courier, mono; : rgb248, 248, 252;">m_nHScrollMaxWidth = nMaxX;</span><span style="font-family: &quot;Courier New&quot;, Courier, mono; line-height: 16.8px; : rgb248, 248, 252;"></pre></td></tr></table><br><br>Will it be the expected behavior for you and other customers ?</span>]]>
   </description>
   <pubDate>Fri, 10 Jun 2016 05:20:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74797&amp;title=17-2-first-pass#74797</guid>
  </item> 
  <item>
   <title><![CDATA[17.2 First pass : The control scroll width initializes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74796&amp;title=17-2-first-pass#74796</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 09 June 2016 at 12:46pm<br /><br />The control scroll width initializes properly. The code is basically OK, until you load another file into the control.<br><br>Once past initialization the width does not reset to 0 when you load a new file into the control and uses the previous max value which is cumulative.<br><br>To duplicate:<br><br>1. Open the control<br>2. Load a disk text file with lines of varying lengths. <br>3. Result is correct. The control scroll width will be appropriate. Neither too wide nor too narrow.<br>4. Do not close the control.<br>5. Load another disk text file with lines of shorter lengths than the first file.<br>6. Result is incorrect. The scroll width retains the max width from step 2.<br><br>To solve, each time a different text file is loaded into the control, the max scroll width has to be reinitialized prior to loading.<br><br>Hence, a call to set max width to 0 should be made before loading a new file so it recalculates:<br><br>void ResetScrollMaxWidth() {m_nHScrollMaxWidth = 0;} <br><br>It makes a lot more sense than destroying the control and re-creating it each time you want to load a new file.<br>]]>
   </description>
   <pubDate>Thu, 09 Jun 2016 12:46:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74796&amp;title=17-2-first-pass#74796</guid>
  </item> 
  <item>
   <title><![CDATA[17.2 First pass : HelloAlgae,  Algae wrote:2. Syntax...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74795&amp;title=17-2-first-pass#74795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 09 June 2016 at 7:59am<br /><br />Hello&nbsp;<span style="line-height: 16.8px;">Algae,</span><br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Algae" alt="Originally posted by Algae" style="vertical-align: text-bottom;" /> <strong>Algae wrote:</strong><br /><br />2. Syntax edit desperately needs:<br><br>void ResetScrollMaxWidth() {m_nHScrollMaxWidth = 0;} // Init the maximum horizontal scrollbar position.<br><br>Call it every time before loading a new edit file. If you don't, every file opened for edit uses the last file edited max width and that could be very wide indeed. This problem still exists. Please, it's such a simple thing! Otherwise the edit control is pretty good. Faster than many and has some very good features.</td></tr></table> I checked this and found that&nbsp;<span style="line-height: 16.8px;">m_nHScrollMaxWidth &nbsp;set to 0 in constructor of&nbsp;</span>CXTPSyntaxEditCtrl::CXTPSyntaxEditCtrl().<br><br>Also I found this code <table width="99%"><tr><td><pre class="BBcode">void CXTPSyntaxEditCtrl::_RecalcHScrollMaxWidth()<div>{</div><div>&nbsp; &nbsp; CRect rcText = m_pDrawTextProcessor-&gt;GetTextRect();</div><div><span style="line-height: 16.8px;">&nbsp; &nbsp;</span><span style="line-height: 16.8px;">&nbsp;</span>int nPageX = rcText.Width();</div><div><br></div><div><span style="line-height: 16.8px;">&nbsp; &nbsp;</span><span style="line-height: 16.8px;">&nbsp;</span>int nMaxX = m_pDrawTextProcessor-&gt;GetRowsMaxWidth();</div><div><span style="line-height: 16.8px;">&nbsp; &nbsp;</span><span style="line-height: 16.8px;">&nbsp;</span>nMaxX += max(nPageX/4, m_pDrawTextProcessor-&gt;GetTextMetrics().tmAveCharWidth * 20);</div><div><span style="line-height: 16.8px;">&nbsp; &nbsp;</span><span style="line-height: 16.8px;">&nbsp;</span>nMaxX = max(nMaxX, rcText.Width() * 2);</div><div><br></div><div><span style="line-height: 16.8px;">&nbsp; &nbsp;</span><span style="line-height: 16.8px;">&nbsp;</span>m_nHScrollMaxWidth = max(nMaxX, m_nHScrollMaxWidth);</div>}</pre></td></tr></table>I don't know history of this control &nbsp;and I&nbsp;doubt the last line. Should <span style="line-height: 16.8px;">m_nHScrollMaxWidth always increase ? &nbsp;Or should&nbsp;</span>fit the real size of text and editor ? &nbsp;I think <table width="99%"><tr><td><pre class="BBcode"><span style="line-height: 16.8px;">m_nHScrollMaxWidth = nMaxX;</pre></td></tr></table> will be better.<br><br>Regards,<br>&nbsp;Oleksandr Lebed</span>]]>
   </description>
   <pubDate>Thu, 09 Jun 2016 07:59:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74795&amp;title=17-2-first-pass#74795</guid>
  </item> 
  <item>
   <title><![CDATA[17.2 First pass : I&amp;#039;ve tested the Calendar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74692&amp;title=17-2-first-pass#74692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 22 April 2016 at 8:43am<br /><br />I've tested the Calendar demo for five minutes on my Surface Pro 3.<br>It seems that there's still a big problem in scaling the fonts of the calendar events according to the enhanced DPI. This is pretty disappointing.<br>Further Office 2010 and 2013 themes still have some styling quirks on a Highres screen.<br><br>Please buy yourself a Surface or at least an appropriate high DPI monitor and test ALL your demos before releasing the next update.<br><br>Even our old - and still used - 15.3 version renders better on a Surface as the actual 17.2 <img src="http://forum.codejock.com/smileys/smiley18.gif" border="0" alt="Ouch" title="Ouch" /><br><br>Really hope you fix this urgent(!!), cause Toolkit Pro is slightly getting a show stopper for our product.<br>]]>
   </description>
   <pubDate>Fri, 22 Apr 2016 08:43:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74692&amp;title=17-2-first-pass#74692</guid>
  </item> 
  <item>
   <title><![CDATA[17.2 First pass : 1. Include static Unicode lib...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74674&amp;title=17-2-first-pass#74674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 23003<br /><strong>Posted:</strong> 18 April 2016 at 11:49pm<br /><br />1. Include static Unicode lib builds for samples. Avoid DLL h3LL. OK, it's easy enough to change the sample prog projects, but we should be modern .. and fast.. and not have clutter and I'm so tired of changing /MDd to /MTd. Even Microstuff says they only do Unicode now. Competitor does em' and it's an easy inclusion. <img src="http://forum.codejock.com/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /><br><br>2. Syntax edit desperately needs:<br><br>void ResetScrollMaxWidth() {m_nHScrollMaxWidth = 0;} // Init the maximum horizontal scrollbar position.<br><br>Call it every time before loading a new edit file. If you don't, every file opened for edit uses the last file edited max width and that could be very wide indeed. This problem still exists. Please, it's such a simple thing! Otherwise the edit control is pretty good. Faster than many and has some very good features.<br><br>3. Heap Corruption. Whoever called this fixed must be working in a foreign language and didn't translate the error.<br><br>It has nothing to do with "Skin", "Theme" or such nonsense. It's in the code guys, not in the themes themselves. Still. I'd be very surprised if it's not in new DPI handling somewhere since it didn't happen before that.<br><br>"Windows has triggered a breakpoint in CalendarDemo.exe.<br>This may be due to a corruption of the heap, which indicates a bug in CalendarDemo.exe or any of the DLLs it has loaded.<br>This may also be due to the user pressing F12 while CalendarDemo.exe has focus.<br>The output window may have more diagnostic information."<br><br>Set ToolTip Custom, push the pointer over an Event.. and POW.. your program is done. <br><br>if ((tiHit.lpszText != LPSTR_TEXTCALLBACK) &amp;&amp; (tiHit.hinst == 0))<br>&nbsp;&nbsp;&nbsp;&nbsp; free(tiHit.lpszText);<br><br>I can duplicate this <b>any</b> time without any mods to code, direct from CalendarDemo sample. That cannot possibly be right.<br><br>That's as far as I got before abandoning 17.2 for my old hacked up 16.26. I'm not even going to start on TreeCtrl again because I know there was no fix for that. Nor have I tried the debacle which is Win 10 in any DPI. I haven't gotten out of debug on Win 7 with CJ 17+ yet. Sigh.<br><br>Thanks for listening and hope you can get it fixed up. Otherwise, I have to explain to my partner why the company needs to blow $ for subscriptions we can never use. Makes us tech types look like goofs.<br><br>CJ 17.2 - static<br>Win 7 Pro 64 bit<br>Visual Studio 2010<br><br>*Message includes no VM, no trans fats, no gluten. Plain ol' simple Windows stuff.<br><br>]]>
   </description>
   <pubDate>Mon, 18 Apr 2016 23:49:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23003&amp;PID=74674&amp;title=17-2-first-pass#74674</guid>
  </item> 
 </channel>
</rss>