[solved] Wrong row selected when clicked |
Post Reply |
Author | |
DaveH
Newbie Joined: 22 December 2008 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 08 August 2014 at 5:24pm |
Hi, I'm having a problem with the Report control (version 16.3.1) where if there are more rows than can be displayed in the control (vertical scrolling is needed), and only part of the bottom row is visible (the control is not an integral multiple of the row height; e.g., it can display 5 full rows and half of the 6th), if I click on that partially-visible row, the Report control will scroll up so that the row is fully visible, but will then select the row that is now where I clicked. I.e., it will select the row after the one I clicked on.
Here's some code that demonstrates the problem... in VB6, put a Report control named ReportControl1 on the form, then paste this as the form code:
This should populate the Report control with 20 rows ("Row 1" through "Row 20"), and size it so that 5 rows are fully visible, and Row 6 is partially visible. If you then click on Row 6, it scrolls up one row and selects Row 7. A workaround is to set .ScrollMode = xtpReportScrollModeSmooth, so when it scrolls, the spot where you click is still Row 6. However, it should work regardless of the ScrollMode: the row selected should be the one where the mouse down event occurs, not where the mouse up event occurs. |
|
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)
|
We have informed our development team of the issue and will be looking into it. Thank you for bringing this to our attention. If the issue has been resolved please let us know.
|
|
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |