<?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 : How to intercept the scroll event?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How to intercept the scroll event?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 04:44:19 +0000</pubDate>
  <lastBuildDate>Mon, 24 May 2010 11:32:31 +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=16743</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[How to intercept the scroll event? : Hi,   I think you are better...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16743&amp;PID=58649&amp;title=how-to-intercept-the-scroll-event#58649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16743<br /><strong>Posted:</strong> 24 May 2010 at 11:32am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I think you are better off, using just one event... The BeforeDrawRow event is <strong>THE</strong> event that covers most of what you are looking for. <strong>This event fires whenever ReportControl needs to be repainted</strong>. Clicking, scrolling, columnsizing, selecting row... etc etc etc&nbsp;&nbsp;...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Just set <strong>wndReportControl.SetCustomDraw <FONT color=#0000ff>xtpCustomBeforeDrawRow</FONT></strong></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#000000>Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV><DIV><FONT color=#000000>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#009900>'Your code goes here</FONT></DIV><DIV><FONT color=#009900>&nbsp;&nbsp;&nbsp; 'For example:</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp; Dim l As Long<BR>&nbsp;&nbsp;&nbsp; Dim t As Long<BR>&nbsp;&nbsp;&nbsp; Dim r As Long<BR>&nbsp;&nbsp;&nbsp; Dim b As Long<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; If Row.Record.Index = 1 And Item.Index = 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#009900>'Get Row position and size</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Row.GetItemRect Item, l, t, r, b<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#009900>'stay on top</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>YourOwnControl</strong>.ZOrder 0&nbsp;<FONT color=#009900>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></DIV><DIV><FONT color=#009900>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Position&nbsp;control on Record with index 1 and in second column (maybe you need to set a margin to&nbsp;get proper positioning)</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>YourOwnControl</strong>.Move l * Screen.TwipsPerPixelX, t * Screen.TwipsPerPixelY, (r - l) * Screen.TwipsPerPixelX, (b - t) * Screen.TwipsPerPixelY<FONT color=#009900>&nbsp;<BR></FONT>&nbsp;&nbsp;&nbsp; End If</DIV><FONT color=#000000><DIV><BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Now, try scrolling and column sizing, your control will stay on that position and with proper size&nbsp;<img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 24 May 2010 11:32:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16743&amp;PID=58649&amp;title=how-to-intercept-the-scroll-event#58649</guid>
  </item> 
  <item>
   <title><![CDATA[How to intercept the scroll event? : Hello, I&amp;#039;d place an ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16743&amp;PID=58640&amp;title=how-to-intercept-the-scroll-event#58640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5601">energypf</a><br /><strong>Subject:</strong> 16743<br /><strong>Posted:</strong> 24 May 2010 at 4:12am<br /><br /><SPAN title="" mc="Hello, I'd place an ActiveX c&#111;ntrol created by me in the cell c&#111;ntrol C&#111;ntrol Re. " lc="Salve, io dovrei posizi&#111;nare un ActiveX C&#111;ntrol creato da me nella cella del c&#111;ntrollo Re C&#111;ntrol." closure_uid_jfdesy="426">Hello, I'd place an ActiveX control created by me in the cell control Control Report. </SPAN><SPAN style=": #fff" title="" mc="Regarding the ing there are problems, as using the  FocusChanging, I can place the c&#111;ntrol cell, but when I go to make the scroll c&#111;ntrol rightly does not move because no  is not generated. " lc="Per quanto riguarda il posizi&#111;namento n&#111;n ci s&#111;no problemi, in quanto utilizzando l'o FocusChanging, riesco a posizi&#111;nare il c&#111;ntrollo sulla cella, ma quando vado ad effettuare lo scroll il c&#111;ntrollo giustamento n&#111;n si muove perchè n&#111;n viene generato nessun o." closure_uid_jfdesy="427">Regarding the positioning there are problems, as using the event FocusChanging, I can place the control cell, but when I go to make the scroll control rightly does not move because no event is not generated. </SPAN><SPAN style=": #fff" title="" mc="How do I set the c&#111;ntrol to move to the cell? " lc="Come faccio a far muovere il c&#111;ntrollo insieme alla cella?" closure_uid_jfdesy="428">How do I set the control to move to the cell? </SPAN><SPAN title="" mc="There is some  to trap the  scrolluing? " lc="Esiste qualche o per intercettare l'o di scrolluing?" closure_uid_jfdesy="429">There is some event to trap the event scrolluing? </SPAN><SPAN title="" mc="Thank you. " lc="Grazie." closure_uid_jfdesy="430">Thank you. </SPAN><SPAN title="" mc="I hope for your resp&#111;nse." lc="Spero in una vostra risposta." closure_uid_jfdesy="431">I hope for your response. <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></SPAN>]]>
   </description>
   <pubDate>Mon, 24 May 2010 04:12:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16743&amp;PID=58640&amp;title=how-to-intercept-the-scroll-event#58640</guid>
  </item> 
 </channel>
</rss>