mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-06 01:26:09 +02:00
Object Inspector: Improve scrolling, reduce flicker. Issue #27667.
git-svn-id: trunk@48433 -
This commit is contained in:
parent
23f22ed784
commit
326bf8d567
@ -2503,6 +2503,7 @@ end;
|
|||||||
procedure TOICustomPropertyGrid.SetTopY(const NewValue:integer);
|
procedure TOICustomPropertyGrid.SetTopY(const NewValue:integer);
|
||||||
var
|
var
|
||||||
NewTopY: integer;
|
NewTopY: integer;
|
||||||
|
r: Types.TRect;
|
||||||
begin
|
begin
|
||||||
NewTopY := TopMax;
|
NewTopY := TopMax;
|
||||||
if NewValue < NewTopY then
|
if NewValue < NewTopY then
|
||||||
@ -2510,10 +2511,12 @@ begin
|
|||||||
if NewTopY < 0 then
|
if NewTopY < 0 then
|
||||||
NewTopY := 0;
|
NewTopY := 0;
|
||||||
if FTopY<>NewTopY then begin
|
if FTopY<>NewTopY then begin
|
||||||
|
r := ClientRect;
|
||||||
|
if not ScrollWindowEx(Handle,0,FTopY-NewTopY,@r,@r,0,nil, SW_INVALIDATE+SW_SCROLLCHILDREN) then
|
||||||
|
Invalidate;
|
||||||
FTopY:=NewTopY;
|
FTopY:=NewTopY;
|
||||||
UpdateScrollBar;
|
UpdateScrollBar;
|
||||||
AlignEditComponents;
|
AlignEditComponents;
|
||||||
Invalidate;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user