diff --git a/components/ideintf/objectinspector.pp b/components/ideintf/objectinspector.pp index 0ed4d03872..216ecb85d6 100644 --- a/components/ideintf/objectinspector.pp +++ b/components/ideintf/objectinspector.pp @@ -2503,9 +2503,6 @@ end; procedure TOICustomPropertyGrid.SetTopY(const NewValue:integer); var NewTopY: integer; - {$IFDEF WINDOWS} - r: Types.TRect; - {$ENDIF} begin NewTopY := TopMax; if NewValue < NewTopY then @@ -2513,11 +2510,6 @@ begin if NewTopY < 0 then NewTopY := 0; 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 - Invalidate; - {$ENDIF} FTopY:=NewTopY; UpdateScrollBar; AlignEditComponents;