DBGrids: fixed dgThumbTracking usage on dbgrid. issue #41451

This commit is contained in:
zeljan1 2025-02-21 20:02:23 +01:00
parent b4bb6f4b64
commit 87877c4fda

View File

@ -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;