Print Page | Close Window

ScrollBar bug

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=10680
Printed Date: 29 September 2024 at 7:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ScrollBar bug
Posted By: serbius
Subject: ScrollBar bug
Date Posted: 19 May 2008 at 9:04am
OS: WinXP
Theme: Royale
XTP: 11.2.2 and 12.0.0

Steps to reproduce:
1. Run ResourceEditor.exe and collapse all groups.
Now there is no scroll bar.




2. Expand one group.



Here we have a problem - Scroll bar is not themed.


3. Move mouse over Scroll bar.



This problem is not related to this application. I just used it for explanation.




Replies:
Posted By: AndyS
Date Posted: 21 May 2009 at 5:02am
I have the same issue a year later. Is this resolved?


Posted By: AndyS
Date Posted: 21 May 2009 at 5:31am

After some more probing the problem only occurs when expanding content to require vertical scroll AND the previous display of the scroll bars had the same scroll bar position. So in the example above expand/collapse the same item would do it, expand/collapse different items would not. Same in my example here but caused by applying filters to the dispayed content.

My hacky fix is to overload the "AdjustScrollBars" virtual method of the report control and send an NC_PAINT message. I'll admit it's a hack and it's a sledgehammer but it works. Good enough.



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