mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:59:15 +02:00
LCL, fix grids scrollbar, from Tomasz Wieckowski, issue #18642
git-svn-id: trunk@29405 -
This commit is contained in:
parent
2cc34a70cb
commit
e2b5fc4bf1
@ -4008,7 +4008,7 @@ var
|
|||||||
ScrollInfo.fMask := SIF_RANGE or SIF_PAGE;
|
ScrollInfo.fMask := SIF_RANGE or SIF_PAGE;
|
||||||
GetScrollInfo(Handle, SB_HORZ, ScrollInfo);
|
GetScrollInfo(Handle, SB_HORZ, ScrollInfo);
|
||||||
with ScrollInfo do
|
with ScrollInfo do
|
||||||
if message.Pos>=(nMax-nMin-nPage) then
|
if not (goSmoothScroll in Options) and (message.Pos>=(nMax-nMin-nPage)) then
|
||||||
result := TL
|
result := TL
|
||||||
else
|
else
|
||||||
result := message.Pos;
|
result := message.Pos;
|
||||||
@ -4117,7 +4117,7 @@ var
|
|||||||
ScrollInfo.fMask := SIF_RANGE or SIF_PAGE;
|
ScrollInfo.fMask := SIF_RANGE or SIF_PAGE;
|
||||||
GetScrollInfo(Handle, SB_VERT, ScrollInfo);
|
GetScrollInfo(Handle, SB_VERT, ScrollInfo);
|
||||||
with ScrollInfo do
|
with ScrollInfo do
|
||||||
if message.Pos>=(nMax-nMin-nPage) then
|
if not (goSmoothScroll in Options) and (message.Pos>=(nMax-nMin-nPage)) then
|
||||||
result := TL
|
result := TL
|
||||||
else
|
else
|
||||||
result := message.Pos;
|
result := message.Pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user