mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 15:37:51 +02:00
DBGrids: fixed dgThumbTracking usage on dbgrid. issue #41451
This commit is contained in:
parent
b4bb6f4b64
commit
87877c4fda
@ -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