Print Page | Close Window

[BUG] Multi-Line Scroll Issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18256
Printed Date: 02 May 2024 at 12:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [BUG] Multi-Line Scroll Issue
Posted By: Xander75
Subject: [BUG] Multi-Line Scroll Issue
Date Posted: 21 April 2011 at 9:15am
Hi,

I believe I have found a bug in the ReportControl when adding just one record that is multi-line.

If the ReportControl is smaller in height than the multi-line text being added to the ReportControl the vertical scrollbars do not appear! See the attached screenshot & sample project.



Am I missing something or is this indeed a bug?

uploads/2960/MultiLine_Bug.rar - uploads/2960/MultiLine_Bug.rar

-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



Replies:
Posted By: jpbro
Date Posted: 21 April 2011 at 10:16am
Looks like a bug - tried to find a workaround, but the only adding a dummy blank record record seems to do the trick (which is unacceptable). I recommend that you open a support ticket at https://support.codejock.com

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Xander75
Date Posted: 21 April 2011 at 10:20am
Thanks for the confirmation on this jpbro. I too tried to find a workaround, but as you said adding a blank record is unacceptable.

I opened a ticket as soon as this was posted, pointing CJ to this post. Hopefully it can be resolved for v15.0.3




-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: jpbro
Date Posted: 21 April 2011 at 10:33am
Andre has been doing a great job resolving ReportControl issues, and this is probably just an off-by-one index bug (or something similarly straight-forward to fix), so I would think it has a good chance of being corrected for 15.0.3 (fingers crossed!). 

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: ABuenger
Date Posted: 25 April 2011 at 8:31pm
Hi,

I've reviewed yours and our code. The problem here is that the report control only scrolls entire rows.
If you add a second record to your sample you'll notice that it scrolls to the second record and not to the lower part of your first record.

I'll add a "smooth" scrolling mode. This mode needs to know the height of each row, so it is not suitable for large recordsets and virtual mode.

Andre



-------------
Codejock support


Posted By: Xander75
Date Posted: 26 April 2011 at 5:01am
Thanks for that Andre.

I did try adding a second blank record as a workaround for now.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: ABuenger
Date Posted: 27 April 2011 at 10:22pm
Hi,

I've added smooth scrolling to the main window and to "Report control > Control Test > Smooth Scroll Test".

I think this should solve your problem.

uploads/1755/ReportSample_18256_Multiline.zip - uploads/1755/ReportSample_18256_Multiline.zip

Just set the scroll mode to xtpReportScrollModeSmooth.

Andre



-------------
Codejock support


Posted By: Xander75
Date Posted: 28 April 2011 at 8:37am
Andre,

I tried out this sample however I am a little worried with the fact that when I used the scroll wheel the reportcontrol would only scroll down and not back up!


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: ABuenger
Date Posted: 28 April 2011 at 11:23am
Thanks, fixed and sample updated:

uploads/1755/ReportSample_18256_Wheel.zip - uploads/1755/ReportSample_18256_Wheel.zip

P.S.: I'm uploading the samples so you verify the feature works as expected and that all bugs are fixed before the release.



-------------
Codejock support


Posted By: Xander75
Date Posted: 28 April 2011 at 11:30am
Andre,

Looks good to me, even better now the mousewheel scroll works again Wink


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: xcentric
Date Posted: 28 April 2011 at 12:16pm
Found strange scrollbar behavior in multiline mode.
To reproduce - run the latest sample, check Report Control -> Multiline Sample and then try to scroll.



Posted By: ABuenger
Date Posted: 28 April 2011 at 1:30pm
Originally posted by xcentric xcentric wrote:

Found strange scrollbar behavior in multiline mode.
To reproduce - run the latest sample, check Report Control -> Multiline Sample and then try to scroll.


Hi,

the "strange" (delayed) behavior is the result of the slower performance of multiline rows.

I'll try to improve it.

Andre



-------------
Codejock support


Posted By: ABuenger
Date Posted: 01 May 2011 at 8:03pm
Originally posted by xcentric xcentric wrote:

Found strange scrollbar behavior in multiline mode.
To reproduce - run the latest sample, check Report Control -> Multiline Sample and then try to scroll.


Hi,

I've rewritten the scrolling code. Performance should be much better now. Let me know if you still see the strange/delayed behavior.

uploads/1755/ReportSample_18256_Performance.zip - uploads/1755/ReportSample_18256_Performance.zip

The problem was that everytime you move the scrollbar Windows sends a WM_VSCROLL message to the report control. This message must be processed till the next WM_VSCROLL message is send, because otherwise the report control is not be redrawn.

Andre




-------------
Codejock support


Posted By: jpbro
Date Posted: 01 May 2011 at 8:32pm
Scrolling is much faster for me - but now when using the keyboard to navigate up and down the report, the vertical scrollbar just bounces at the top of the screen (doesn't follow focus).




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: ABuenger
Date Posted: 01 May 2011 at 9:50pm
Originally posted by jpbro jpbro wrote:

Scrolling is much faster for me - but now when using the keyboard to navigate up and down the report, the vertical scrollbar just bounces at the top of the screen (doesn't follow focus).


Yes, keyboard scrolling is not yet complete for smooth scrolling mode. I'll get this done tomorrow. Just wanted to get the update out.



-------------
Codejock support


Posted By: jpbro
Date Posted: 01 May 2011 at 10:24pm
No problem, I just wanted to make sure that you were aware of the issue. Thanks for you work on this!

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net