[patch] grid fix for offset bug
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
By default goSmoothScroll is set in TDrawGrid and TStringGrid options. If you scroll with the scrollbars a bit, the offset of the cells is changed. If you not step with the keyboard in the grid, the cells are painted at the wrong position.
Steps to reproduce:
Start added example or create a project with a grid witch is bigger than the form so the scrollbars appear.
- scroll a little bit, that the cells at the first position aren't completly painted
- click on one cell in the grid
- step with the keyboard -> the new painted cells have a other offset than the old cells
Additional information:
The patch has no effect for TDBGrid, cause there is no SmoothScroll option (only full painted cells).
It works for vertical and horizontal cutted cells (see testproject).
There was a little thread about that issue on German Lazarusforum: http://www.lazarusforum.de/viewtopic.php?f=19&t=9311