TScrollBar control scrolls too far when PageSize is nonzero
Original Reporter info from Mantis: zex2011
-
Reporter name: Zex Atilla
Original Reporter info from Mantis: zex2011
- Reporter name: Zex Atilla
Description:
Assume a vertical TScrollBar with these properties:
ScrollBar.Min := 1;
ScrollBar.Max := 100;
ScrollBar.PageSize := 20;
With this setup the ScrollBar.Position should never reach 100 because PageSize is 20. This value is deducted from Max.
Let's see if it works. Move the scrollbar "handle" to the bottom. Ok, the Scrollbar.Position has reached 81 and stopped. Nice.
Now, let's click the down arrow on the scrollbar. Surprisingly, Scrollbar.Position has moved to 82. Click and hold the down arrow. Scrollbar will increase position up to 100, completely ignoring the PageSize.