![]() |
[SOLVED] TopRowIndex always returns 0 |
Post Reply ![]() |
Author | |
McKloony ![]() Senior Member ![]() ![]() Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
![]() ![]() ![]() ![]() ![]() Posted: 08 September 2011 at 4:37am |
in the new release the TopRowIndex property always returns 0 no matter how many records are in the reportcontrol. here is a sample project for andre:
|
|
Product: Xtreme SuitePro (ActiveX) 16.2.5
Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
ABuenger ![]() Newbie ![]() ![]() Joined: 02 February 2006 Status: Offline Points: 1075 |
![]() ![]() ![]() ![]() ![]() |
Hi,
TopRowIndex returns 0 if you have smooth scrolling enabled. I'll also set the row index for the next release. Andre |
|
Codejock support
|
|
![]() |
|
McKloony ![]() Senior Member ![]() ![]() Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
![]() ![]() ![]() ![]() ![]() |
Andre, if ScrollMode = xtpReportScrollModeBlock the TopRowIndex also gets 0
|
|
Product: Xtreme SuitePro (ActiveX) 16.2.5
Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
ABuenger ![]() Newbie ![]() ![]() Joined: 02 February 2006 Status: Offline Points: 1075 |
![]() ![]() ![]() ![]() ![]() |
Hi, I've added a new HScroll and VScroll event and tested if the TopRowIndex is set correctly. Private Sub wndReportControl_VScroll(ByVal Section As Long, ByVal Position As Long) Debug.Print wndReportControl.TopRowIndex End Sub The TopRowIndex is always set correctly, if ScrollMode = xtpReportScrollModeBlock. If you always get 0, you've enabled smooth scrolling. Andre |
|
Codejock support
|
|
![]() |
|
McKloony ![]() Senior Member ![]() ![]() Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
![]() ![]() ![]() ![]() ![]() |
Yes, you are right. Anyhow on my project was smooth scrolling activated.
|
|
Product: Xtreme SuitePro (ActiveX) 16.2.5
Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |