mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-25 01:50:56 +01:00
Object Inspector: Improve scrolling, reduce flicker using ScrollWindowEx. Issue #27667.
git-svn-id: trunk@48440 -
This commit is contained in:
parent
f78dd6dbd5
commit
e0fbbdd0c4
@ -2503,6 +2503,9 @@ end;
|
|||||||
procedure TOICustomPropertyGrid.SetTopY(const NewValue:integer);
|
procedure TOICustomPropertyGrid.SetTopY(const NewValue:integer);
|
||||||
var
|
var
|
||||||
NewTopY: integer;
|
NewTopY: integer;
|
||||||
|
{$IFDEF WINDOWS}
|
||||||
|
r: Types.TRect;
|
||||||
|
{$ENDIF}
|
||||||
begin
|
begin
|
||||||
NewTopY := TopMax;
|
NewTopY := TopMax;
|
||||||
if NewValue < NewTopY then
|
if NewValue < NewTopY then
|
||||||
@ -2510,6 +2513,11 @@ begin
|
|||||||
if NewTopY < 0 then
|
if NewTopY < 0 then
|
||||||
NewTopY := 0;
|
NewTopY := 0;
|
||||||
if FTopY<>NewTopY then begin
|
if FTopY<>NewTopY then begin
|
||||||
|
{$IFDEF WINDOWS}
|
||||||
|
r := ClientRect;
|
||||||
|
if not ScrollWindowEx(Handle,0,FTopY-NewTopY,@r,@r,0,nil, SW_INVALIDATE+SW_SCROLLCHILDREN) then
|
||||||
|
{$ENDIF}
|
||||||
|
Invalidate;
|
||||||
FTopY:=NewTopY;
|
FTopY:=NewTopY;
|
||||||
UpdateScrollBar;
|
UpdateScrollBar;
|
||||||
AlignEditComponents;
|
AlignEditComponents;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user