WinCE: Client area of scrollbox is scrolled in wrong direction
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When putting controls outside of the visible client area of a scrollbox and scrolling this box during runtime the controls are moved in the wrong direction (which is possible indefinitly when AutoScroll=True).
Additional information:
Attached example demonstrates this: some buttons are put beyond client area range and if scrolled they move into the wrong direction.
Comparing the ScrollBy methods in the WinCEWSForms and Win32WSForms provides the solution: the Delta values are negated in TWin32WSScrollingWinControl.ScrollBy while in the WinCE equivalent they are not. Attached patch solves this.
Mantis conversion info:
- Mantis ID: 16638
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 25897 (#fa2adc7b)