<?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 : Document marked as modified although readonly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Document marked as modified although readonly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 03:57:10 +0000</pubDate>
  <lastBuildDate>Tue, 22 Jul 2008 08:27:35 +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=11535</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[Document marked as modified although readonly : Hi,  I hope I will have soon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11535&amp;PID=38685&amp;title=document-marked-as-modified-although-readonly#38685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4339">peerschindel</a><br /><strong>Subject:</strong> 11535<br /><strong>Posted:</strong> 22 July 2008 at 8:27am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I hope I will have soon found out and corrected all the small issues</DIV><DIV>that make the edit control act not perfectly perfect.</DIV><DIV>&nbsp;</DIV><DIV>When you open a file in read-only mode (e.g. in sample MDITextEditor open it and select option "Read Only" from menu),</DIV><DIV>then all actions to modify the document from the context menu</DIV><DIV>and main "Edit" menue are still ENABLED (e.g. "Paste", "Cut", "Tabify Selection", "Delete").</DIV><DIV>&nbsp;</DIV><DIV>This itself is only a small issue.</DIV><DIV>But it becomes really annoying, that when you select e.g. "Paste" or</DIV><DIV>"Tabify selection", then the document is marked as modified via</DIV><DIV>"SetDocModified" (called from inside the XTSyntaxEdit control element).</DIV><DIV>Which in turn means, when you are asked to save, if you close the</DIV><DIV>document (and that for a read-only document which you most probably</DIV><DIV>never want to save !)</DIV><DIV>&nbsp;</DIV><DIV>In my mind the easiest way to correct the problem would be</DIV><DIV>to correct the Update-UI-Handler for ID</DIV><DIV>ID_EDIT_UNDO,<BR>ID_EDIT_REDO,<BR>ID_EDIT_CUT,<BR>ID_EDIT_PASTE,<BR>ID_EDIT_CLEAR,<BR>ID_EDIT_REPLACE,</DIV><DIV>in "<FONT size=2>CXTPSyntaxEditView"</FONT></DIV><DIV><FONT size=2>so that they check additionally the condition </FONT></DIV><DIV><FONT size=2><P>... Enable ( .... &amp;&amp; GetEditCtrl ().CanEditDoc ())</P></FONT></DIV><DIV><DIV>I mean, again, it can be workaround with/without modifying the library</DIV><DIV>source code... Maybe all this could be fixed in the next release</DIV><DIV>so that at least people after me will have a benefit from my problems.</DIV><DIV>&nbsp;</DIV><DIV>Best regards</DIV><DIV><BR>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 22 Jul 2008 08:27:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11535&amp;PID=38685&amp;title=document-marked-as-modified-although-readonly#38685</guid>
  </item> 
 </channel>
</rss>