<?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 : Syntax Editor Problem within a splitter</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Syntax Editor Problem within a splitter]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 02:57:53 +0000</pubDate>
  <lastBuildDate>Fri, 05 Jan 2007 14:55:54 +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=5974</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[Syntax Editor Problem within a splitter : Hi Italo,Thanks for your solution....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5974&amp;PID=18925&amp;title=syntax-editor-problem-within-a-splitter#18925</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5974<br /><strong>Posted:</strong> 05 January 2007 at 2:55pm<br /><br />Hi Italo,<br><br>Thanks for your solution. For the nearest update we'll definitely implement this or similar solution.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Fri, 05 Jan 2007 14:55:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5974&amp;PID=18925&amp;title=syntax-editor-problem-within-a-splitter#18925</guid>
  </item> 
  <item>
   <title><![CDATA[Syntax Editor Problem within a splitter : Here&amp;#039;s how I was able to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5974&amp;PID=18918&amp;title=syntax-editor-problem-within-a-splitter#18918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=270">Italo</a><br /><strong>Subject:</strong> 5974<br /><strong>Posted:</strong> 05 January 2007 at 2:00pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">Here's how I was able to fix this:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>For the first problem, just add UpdateWindow(); as the last line in CXTPSyntaxEditCtrl::OnSize</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>The second problem do as following:</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Add support to CXTPSyntaxEditView to subclass the edit control</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.5in"><FONT size=3><FONT face="Times New Roman">1.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Replace CXTPSyntaxEditCtrl m_wndEditCtrl; with <SPAN style="COLOR: black; mso-no-proof: yes">CXTPSyntaxEditCtrl</SPAN><SPAN style="mso-no-proof: yes"> *<SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>; in </SPAN>CXTPSyntaxEditView.h<SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-no-proof: yes">2.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Replace all m_wndEditCtrl with m_pwndEditCtrl in </SPAN>CXTPSyntaxEditView.cpp<SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-no-proof: yes">3.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>Replace line 751 with<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </SPAN></FONT></FONT><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">return</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> *<SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>; </SPAN><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-no-proof: yes">in </SPAN>CXTPSyntaxEditView.cpp</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>4.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Add the following method to CXTPSyntaxEditView</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">virtual</SPAN> <SPAN style="COLOR: black">CXTPSyntaxEditCtrl</SPAN>* <SPAN style="COLOR: black">OnCreateSyntaxEditCtrl</SPAN>() <SPAN style="COLOR: blue">const<o:p></o:p></SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: black">CXTPSyntaxEditCtrl</SPAN>* <SPAN style="COLOR: black">pCtrl</SPAN> = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: black">CXTPSyntaxEditCtrl</SPAN>();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: black">ASSERT_VALID</SPAN>( <SPAN style="COLOR: black">pCtrl</SPAN> );<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: black">pCtrl</SPAN>;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-no-proof: yes">5.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Replace line 344 in with </SPAN>CXTPSyntaxEditView.cpp<SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: black">m_pwndEditCtrl</SPAN> = <SPAN style="COLOR: black">OnCreateSyntaxEditCtrl</SPAN>();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: black">ASSERT_VALID</SPAN>( <SPAN style="COLOR: black">m_pwndEditCtrl</SPAN> );<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: black">m_bScrollBars</SPAN> = <SPAN style="COLOR: black">m_bScrollBars</SPAN> || !<SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>-&gt;<SPAN style="COLOR: black">CreateScrollbarOnParent</SPAN>();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN>( !<SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>-&gt;<SPAN style="COLOR: black">Create</SPAN>(<SPAN style="COLOR: blue">this</SPAN>, <SPAN style="COLOR: black">m_bScrollBars</SPAN>, <SPAN style="COLOR: black">m_bScrollBars</SPAN>, <SPAN style="COLOR: black">pDataManager</SPAN>, <SPAN style="COLOR: black">pContext</SPAN>))<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: black">TRACE0</SPAN>(<SPAN style="COLOR: maro&#111;n">"Failed to create edit control.\n"</SPAN>);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> -1;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><FONT face="Times New Roman" size=3>6.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Add </FONT></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">delete</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>; to the </SPAN><FONT face="Times New Roman" size=3>CXTPSyntaxEditView</FONT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> destructor</SPAN><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Prevent the control from adding a scrollbar to a parent splitter.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>1.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Add the following method to CXTPSyntaxEditCtrl</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: n&#111;ne"><FONT size=3><FONT face="Times New Roman"><SPAN style="COLOR: blue; mso-no-proof: yes">virtual</SPAN><SPAN style="mso-no-proof: yes"> <SPAN style="COLOR: blue">bool</SPAN> <SPAN style="COLOR: black">CreateScrollbarOnParent</SPAN>() <SPAN style="COLOR: blue">const</SPAN> { <SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">true</SPAN>; }<o:p></o:p></SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.5in"><FONT face="Times New Roman" size=3>2.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Replace the lines 2952, 2964, 2978, 2992, 3004, 3016, 3028, 3040, 3052, 3066, 3080, 3094, and 3106 in CXTPSyntaxEditCtrl.cpp with:</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><FONT size=3><FONT face="Times New Roman"><SPAN style="COLOR: blue; mso-no-proof: yes">if</SPAN><SPAN style="mso-no-proof: yes">( <SPAN style="COLOR: black">pParentWnd</SPAN> != <SPAN style="COLOR: black">NULL</SPAN> &amp;&amp; <SPAN style="COLOR: black">CreateScrollbarOnParent</SPAN>() )<o:p></o:p></SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-no-proof: yes">3.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Replace the following line in </SPAN>CXTPSyntaxEditView.cpp</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-no-proof: yes"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>761 - </FONT></FONT><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">if</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">( <SPAN style="COLOR: black">pSplitterWnd</SPAN> != <SPAN style="COLOR: black">NULL</SPAN> &amp;&amp; <SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>-&gt;<SPAN style="COLOR: black">CreateScrollbarOnParent</SPAN>() )<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>900 - <SPAN style="COLOR: blue">if</SPAN> (!<SPAN style="COLOR: black">pSplitterWnd</SPAN> || !<SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>-&gt;<SPAN style="COLOR: black">CreateScrollbarOnParent</SPAN>() )<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>1295 - <SPAN style="COLOR: blue">if</SPAN> (<SPAN style="COLOR: black">pSplitterWnd</SPAN> &amp;&amp; <SPAN style="COLOR: black">m_pwndEditCtrl</SPAN>-&gt;<SPAN style="COLOR: black">CreateScrollbarOnParent</SPAN>() )<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.5in"><FONT size=3><FONT face="Times New Roman">4.<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Create a class that subclasses CXTPSyntaxEditCtrl, override <SPAN style="COLOR: black; mso-no-proof: yes">CreateScrollbarOnParent, in the view override </SPAN></FONT></FONT><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">OnCreateSyntaxEditCtrl to return a instance of your edit control.</P><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">Can someone from CodeJock please implement this or something similar?</FONT></FONT></P></DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Italo</SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 05 Jan 2007 14:00:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5974&amp;PID=18918&amp;title=syntax-editor-problem-within-a-splitter#18918</guid>
  </item> 
  <item>
   <title><![CDATA[Syntax Editor Problem within a splitter : While using the syntax editor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5974&amp;PID=18771&amp;title=syntax-editor-problem-within-a-splitter#18771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=270">Italo</a><br /><strong>Subject:</strong> 5974<br /><strong>Posted:</strong> 03 January 2007 at 2:14pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>While using the syntax editor within a splitter control I noticed the following problems.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.5in; mso-list: l0 level1 lfo1; tab-stops: list 1.0in"><FONT face="Times New Roman"><SPAN style="mso-list: Ignore"><FONT size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><FONT size=3>While resizing the splitter the control is not repainting correctly. </FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1.25in; TEXT-INDENT: -0.25in; mso-list: l0 level2 lfo1; tab-stops: list 1.25in"><FONT face="Times New Roman"><SPAN style="mso-list: Ignore"><FONT size=3>a.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><FONT size=3>A thick border is being drawn.</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1.25in; TEXT-INDENT: -0.25in; mso-list: l0 level2 lfo1; tab-stops: list 1.25in"><FONT face="Times New Roman"><SPAN style="mso-list: Ignore"><FONT size=3>b.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><FONT size=3>The control doesn’t repaint correctly.</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;<img src="https://forum.codejock.com/uploads/20070103_141341_P1.jpg" border="0"></FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.5in; mso-list: l0 level1 lfo1; tab-stops: list 1.0in"><FONT face="Times New Roman"><SPAN style="mso-list: Ignore"><FONT size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><FONT size=3>The scrollbars are being set for the parent of the control, which is the splitter. This is not what I need, because my splitter has the syntax editor on the first row and another control on the second.</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3><img src="https://forum.codejock.com/uploads/20070103_141411_P2.jpg" border="0"></FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p>&nbsp;</o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3></FONT></o:p>&nbsp;</P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>How can I fix these problems?</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Thanks,</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Italo</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P>]]>
   </description>
   <pubDate>Wed, 03 Jan 2007 14:14:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5974&amp;PID=18771&amp;title=syntax-editor-problem-within-a-splitter#18771</guid>
  </item> 
 </channel>
</rss>