<?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 : GetLineMarksManager should be public?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : GetLineMarksManager should be public?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 03:57:34 +0000</pubDate>
  <lastBuildDate>Fri, 12 Oct 2007 07:46:08 +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=7112</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[GetLineMarksManager should be public? :  These changes will be included...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=27246&amp;title=getlinemarksmanager-should-be-public#27246</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 7112<br /><strong>Posted:</strong> 12 October 2007 at 7:46am<br /><br /><DIV><DIV>These changes will be included to 11.2.1 release:</DIV><DIV>&nbsp;</DIV><DIV>1. FIXED <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> if (<strong>nIndex &gt;= 0</strong>) // This seems more logical :)</td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>2. GetLineMarksManager()&nbsp;will be&nbsp;public.</DIV><DIV>&nbsp;</DIV><DIV>3. The constructor of&nbsp;CXTPSyntaxEditPaintManager&nbsp;will be&nbsp;public, DrawLineMark will be&nbsp;virtual. </DIV><DIV>Get/SetPaintManaget methods will be&nbsp;added.</DIV></DIV>]]>
   </description>
   <pubDate>Fri, 12 Oct 2007 07:46:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=27246&amp;title=getlinemarksmanager-should-be-public#27246</guid>
  </item> 
  <item>
   <title><![CDATA[GetLineMarksManager should be public? : Thanks for your suggestions, we...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=26614&amp;title=getlinemarksmanager-should-be-public#26614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 7112<br /><strong>Posted:</strong> 28 September 2007 at 2:56pm<br /><br />Thanks for your suggestions, we are looking into the problems and should have them corrected with the next product release.<br><br>Cheers,<br>]]>
   </description>
   <pubDate>Fri, 28 Sep 2007 14:56:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=26614&amp;title=getlinemarksmanager-should-be-public#26614</guid>
  </item> 
  <item>
   <title><![CDATA[GetLineMarksManager should be public? :  Noticed another problem. The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=22792&amp;title=getlinemarksmanager-should-be-public#22792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 7112<br /><strong>Posted:</strong> 11 May 2007 at 5:06pm<br /><br /><FONT color=#040004 size=2><P>Noticed another problem. The constructor of CXTPSyntaxEditPaintManager is protected. Hence, it is impossible to change the coloring of the syntax edit. For instance, I want to override <FONT color=#040004 size=2>CXTPSyntaxEditPaintManager::<FONT color=#040004 size=2>DrawLineMark.</P><DIV></DIV><DIV></DIV>A possible solution is to make the constructor public and then add a CXTPSyntaxEditPaintManager-pointer in the edit control. Then you could add a method such as this:<DIV></DIV><DIV></DIV><DIV>GetEditCtrl().SetSyntaxEditPaintManager(new CMySyntaxPaintMgr());</DIV><DIV>&nbsp;</DIV><DIV>If the pointer is not set, then you call <FONT color=#040004 size=2>XTPSyntaxEditPaintManager() to get the default coloring.</FONT></DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 11 May 2007 17:06:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=22792&amp;title=getlinemarksmanager-should-be-public#22792</guid>
  </item> 
  <item>
   <title><![CDATA[GetLineMarksManager should be public? : Hi,  I was trying to implement...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=22790&amp;title=getlinemarksmanager-should-be-public#22790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 7112<br /><strong>Posted:</strong> 11 May 2007 at 3:43pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I was trying to implement a "Remove all breakpoints"-function. This was my first attempt:</DIV><DIV>&nbsp;</DIV><DIV>for (int i = 1; i &lt;= GetEditCtrl().GetRowCount(); i++)<BR>&nbsp;&nbsp;&nbsp; GetEditCtrl().DeleteBreakpoint(i);<BR></DIV><DIV>However, that yields a crash in CArray due to an index value of -1. I think this is a bug:</DIV><DIV>void CXTPSyntaxEditLineMarksManager::CLineMarksList::Remove(const int nKey)<BR>{<BR>&nbsp;&nbsp;&nbsp; int nIndex = FindIndex(nKey);<BR>&nbsp;&nbsp;&nbsp; // BUG? if (nKey &gt;= 0)</DIV><DIV>&nbsp;&nbsp;&nbsp; if (<strong>nIndex &gt;= 0</strong>) // This seems more logical :)</DIV><DIV>&nbsp;&nbsp;&nbsp; ...<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Wouldn't it be better if GetLineMarksManager() was public or at least protected? In this case, it seems hard to fix the above without recompiling the source code. Calling HasRowMark(...) before the deletion solves it, but then you need to redraw the line marks. You cannot do this with <FONT color=#040004 size=2>RedrawLineMarks() since it is protected. Anyway, this is how I solved it:</FONT></DIV><DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV>for (int i = 1; i &lt;= GetEditCtrl().GetRowCount(); i++)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (GetEditCtrl().HasRowMark(i, xtpEditLMT_Breakpoint))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetEditCtrl().DeleteBreakpoint(i);<BR>}<BR>GetEditCtrl().Invalidate();<BR>&nbsp;&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 11 May 2007 15:43:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7112&amp;PID=22790&amp;title=getlinemarksmanager-should-be-public#22790</guid>
  </item> 
 </channel>
</rss>