mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 19:20:33 +02:00
DBGrids: fixed dgThumbTracking usage on dbgrid. issue #41451
(cherry picked from commit 87877c4fda
)
Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
parent
4ef9ee5aeb
commit
ed95ad2fa7
@ -1795,8 +1795,10 @@ begin
|
||||
ScrollInfo.ntrackPos := 0;
|
||||
{$else}
|
||||
ScrollInfo.fMask := SIF_ALL or SIF_UPDATEPOLICY;
|
||||
//ScrollInfo.ntrackPos := SB_POLICY_CONTINUOUS;
|
||||
ScrollInfo.ntrackPos := SB_POLICY_DISCONTINUOUS;
|
||||
if dgThumbTracking in Options then
|
||||
ScrollInfo.ntrackPos := SB_POLICY_CONTINUOUS
|
||||
else
|
||||
ScrollInfo.ntrackPos := SB_POLICY_DISCONTINUOUS;
|
||||
{$endif}
|
||||
ScrollInfo.nMin := 0;
|
||||
ScrollInfo.nMax := aRange;
|
||||
|
Loading…
Reference in New Issue
Block a user