<?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 : Bad drawing of selection after end of line</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Bad drawing of selection after end of line]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 03:00:23 +0000</pubDate>
  <lastBuildDate>Mon, 20 Apr 2009 10:54:40 +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=14085</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[Bad drawing of selection after end of line : Hello Syntax Edit team, I just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14085&amp;PID=48156&amp;title=bad-drawing-of-selection-after-end-of-line#48156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4339">peerschindel</a><br /><strong>Subject:</strong> 14085<br /><strong>Posted:</strong> 20 April 2009 at 10:54am<br /><br />Hello Syntax Edit team,<DIV><BR>I just want to make a proposal for the following effect (what - I think - is a bug).<BR><BR>Suppose I have a text file with 2 lines:</DIV><DIV>&nbsp;</DIV><DIV>1234567890</DIV><DIV>ABC</DIV><DIV>&nbsp;</DIV><DIV>So 10 character in the 1st line and 3 characters in the 2nd line.<BR>Then I press &lt;End&gt; to go to end of 1st line. Then I press &lt;Down&gt; to go to end of 2nd line.<BR>I brings me behind the 3rd (so the last) character of 2nd line. So far, so good.<BR>But when I now press &lt;Shift&gt;+&lt;End&gt;, it draws, as if 7 (non-existing)&nbsp;space characters </DIV><DIV>were selected. But they are not (because I cannot copy them to clipboard, etc.).</DIV><DIV>&nbsp;</DIV><DIV>Note: Virtual space is NOT enabled for my syntax edit control.</DIV><DIV>&nbsp;</DIV><DIV>So I would suggest the following fix in file "XTPSyntaxEditPaintManager.cpp" in</DIV><DIV>function "CXTPSyntaxEditPaintManager::DrawLineTextEx" ca. in line 1023:</DIV><DIV>&nbsp;</DIV><DIV>Replace:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; ...</DIV><DIV>&nbsp;&nbsp;&nbsp; if (!pDC-&gt;IsPrinting())<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // draw selection for virtual space, after line text end)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR></DIV><DIV>with</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; ...</DIV><DIV><DIV>&nbsp; &nbsp;&nbsp;if (!pDC-&gt;IsPrinting() &amp;&amp; pEditCtrl-&gt;IsEnabledVirtualSpace ())&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // draw selection for virtual space, after line text end)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR></DIV></DIV><DIV>Because as the comment already states:<BR>The following drawing code should only be for virtual space and if I have NOT</DIV><DIV>it disabled, it draws - in my opinion - wrong and confusing things.</DIV><DIV>So I simply so not execute this special drawing code when I don't have virtual space.</DIV><DIV>&nbsp;</DIV><DIV>Best regards</DIV>]]>
   </description>
   <pubDate>Mon, 20 Apr 2009 10:54:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14085&amp;PID=48156&amp;title=bad-drawing-of-selection-after-end-of-line#48156</guid>
  </item> 
 </channel>
</rss>