<?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 : Minor problem with &quot;ReplaceSel&quot; and undo</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Minor problem with &quot;ReplaceSel&quot; and undo]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 03:59:54 +0000</pubDate>
  <lastBuildDate>Mon, 21 Jul 2008 09:58:28 +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=11513</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[Minor problem with &quot;ReplaceSel&quot; and undo : Hi all,  I have faced a minor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11513&amp;PID=38623&amp;title=minor-problem-with-replacesel-and-undo#38623</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4339">peerschindel</a><br /><strong>Subject:</strong> 11513<br /><strong>Posted:</strong> 21 July 2008 at 9:58am<br /><br />Hi all,<DIV>&nbsp;</DIV><DIV>I have faced a minor problem (to not call it bug) with "ReplaceSel".</DIV><DIV>If I call it several times (which I do in our software to insert some texts</DIV><DIV>to the edit control via menu items), then all is treated as ONE undo </DIV><DIV>event (and not as several ones).</DIV><DIV>This is in contrast to ordinary paste from clipboard where I can undo each</DIV><DIV>event separately.</DIV><DIV>&nbsp;</DIV><DIV>The reason is, that "ReplaceSel" calls</DIV><DIV>&nbsp; InsertString(szNewText, GetCurrentDocumentRow(), m_nCurrentCol,</DIV><DIV>&nbsp; TRUE);</DIV><DIV>with the last parameter "TRUE" while "Paste" calls it with </DIV><DIV>&nbsp; m_Selection.IsSelExist()</DIV><DIV>It would be nice, if this could be made constistent to make it more</DIV><DIV>convenient for future releases.</DIV><DIV>In the meantime for me it's no problem to make my own version of</DIV><DIV>"ReplaceSel" with the change. It's just that I want to help</DIV><DIV>to improve the SyntaxEdit control to make it even better than</DIV><DIV>it is already <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 21 Jul 2008 09:58:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11513&amp;PID=38623&amp;title=minor-problem-with-replacesel-and-undo#38623</guid>
  </item> 
 </channel>
</rss>