mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 20:00:27 +02:00
lcl: controlscrollbar: set scroll message result as handled if position changed.
git-svn-id: trunk@52426 -
This commit is contained in:
parent
e0169fef8e
commit
f3d729dee2
@ -312,8 +312,12 @@ begin
|
|||||||
NewPos := 0;
|
NewPos := 0;
|
||||||
if NewPos > FRange then
|
if NewPos > FRange then
|
||||||
NewPos := FRange;
|
NewPos := FRange;
|
||||||
InvalidateScrollInfo;
|
if NewPos<>FPosition then
|
||||||
SetPosition(NewPos);
|
begin
|
||||||
|
InvalidateScrollInfo;
|
||||||
|
SetPosition(NewPos);
|
||||||
|
Message.Result := 1;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TControlScrollBar.ControlUpdateScrollBars;
|
procedure TControlScrollBar.ControlUpdateScrollBars;
|
||||||
|
Loading…
Reference in New Issue
Block a user