[solved] HScrollbar may not be sized properly |
Post Reply |
Author | |
DaveH
Newbie Joined: 22 December 2008 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 26 June 2014 at 4:13pm |
Hi, it seems that if a report control column's width is changed through code, the viewport size for the horizontal scrollbar may not get recomputed. For example, if the control is wide enough to show the initial column widths without scrolling, there's no scrollbar, as expected. Then if you increase the Width property of one of the columns, the scrollbar should appear, but it doesn't. If you then click on the column header divider, as if you were going to resize a column with the mouse (but you don't actually have to resize it), the scrollbar will appear properly. Or if there is initially a horizontal scrollbar and you widen a column, the scrollbar won't scroll far enough to the right to completely show all the columns. And again, if you click on the column divider, the scrollbar will adjust and let you scroll all the way.
Sample code to demonstrate the problem... in VB6, put a Report control named ReportControl1 on the form, then paste this as the form code:
You should see a report control with no horizontal scrollbar, and with Column 2 truncated. Then when you click the column divider, the scrollbar will appear. Calling Redraw after setting the column width will work around the problem, but I didn't expect it to be necessary to do so. This is with version 16.3.1. |
|
SuitePro version 16.3.1
David Huang Alterity, Inc. Inventory and Distribution Management for QuickBooks |
|
mcmastl
Admin Group Joined: 14 April 2015 Status: Offline Points: 79 |
Post Options
Thanks(0)
|
David Huang,
Thank you for letting us know of this issue. We have let our development team know to look further into the issue. If the matter has been resolved please let us know. |
|
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello David,
This issue has already been solved. The fix is already available in version 17.0 beta1. Once you have an update installed, please make sure everything works as expected, let me know if there are any issues left. - AdjustLayout() and RedrawControl() added to CXTPReportPaintManager::SetFixedRowHeight() - AdjustLayout() added to CXTPReportHeader::ResizeColumn() - CXTPReportPaintManager::CalcColumnHeight used old value of width of ReportHeader because pHeader->AdjustColumnsWidth() (in CXTPReportControl::AdjustLayout()) was called before updating width of ReportHeader. The same bug was fixed in TrackControl. Regards, Oleksandr Lebed |
|
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 |