<?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 : Scrolling</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Scrolling]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 03:57:30 +0000</pubDate>
  <lastBuildDate>Sat, 20 Jan 2007 09:43:22 +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=6165</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[Scrolling : Adding that seems to have no affect.  Not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6165&amp;PID=19552&amp;title=scrolling#19552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 6165<br /><strong>Posted:</strong> 20 January 2007 at 9:43am<br /><br />Adding that seems to have no affect.<DIV>&nbsp;</DIV><DIV>Not sure how that would allow me to scroll the the last line (bottom) of the file/document.</DIV>]]>
   </description>
   <pubDate>Sat, 20 Jan 2007 09:43:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6165&amp;PID=19552&amp;title=scrolling#19552</guid>
  </item> 
  <item>
   <title><![CDATA[Scrolling : try adding:    GetEditCtrl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6165&amp;PID=19533&amp;title=scrolling#19533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6165<br /><strong>Posted:</strong> 19 January 2007 at 4:31pm<br /><br />try adding:<br><table width="99%"><tr><td><pre class="BBcode"><br><div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">GetEditCtrl().RecalcScrollBars();</span><br></div></div></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 16:31:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6165&amp;PID=19533&amp;title=scrolling#19533</guid>
  </item> 
  <item>
   <title><![CDATA[Scrolling : I have a View which is derived...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6165&amp;PID=19520&amp;title=scrolling#19520</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 6165<br /><strong>Posted:</strong> 19 January 2007 at 1:49pm<br /><br /><DIV>I have a View which is derived from the SyntaxEditorView class.&nbsp; My class does not have a CDocument associated with it.</DIV><DIV>&nbsp;</DIV><DIV>In the Syntax Editor control, I am loading a different file in the same control when the user changes what they are looking at.&nbsp; </DIV><DIV>&nbsp;</DIV>After a file is loaded and text inserted into the control.&nbsp; I need to scroll to the bottom of the Syntax Editor window after a file is loaded&nbsp;for a "tail"-like behavior for log files.<DIV>&nbsp;</DIV><DIV>To accomplish this, I have to do the following:</DIV><DIV>&nbsp;</DIV><DIV><strong>&nbsp;GetEditCtrl().Scroll(0,0);<BR>&nbsp;GetEditCtrl().SetScrollRange(SB_VERT, 1, 1);</strong></DIV><DIV><strong>&nbsp;GetEditCtrl().Scroll(0, pXTPSyntaxEditBufferManager-&gt;GetRowCount());<BR>&nbsp;int nPos = GetEditCtrl().GetScrollPos(SB_VERT);<BR>&nbsp;GetEditCtrl().GoToRow(nPos);<BR>&nbsp;GetEditCtrl().Scroll(0, nPos);<BR></strong></DIV><DIV>&nbsp;</DIV><DIV>The problem is that if the previously loaded file is larger than the current file, the control is still retaining some old values that prevent the scrolling from working properly.</DIV><DIV>&nbsp;</DIV><DIV>Perhaps this is a bug...or maybe my code will help someone else out.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 13:49:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6165&amp;PID=19520&amp;title=scrolling#19520</guid>
  </item> 
 </channel>
</rss>