FMX.Layouts.TCustomScrollBox.ViewportPositionChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ViewportPositionChange(const OldViewportPosition, NewViewportPosition: TPointF;  const ContentSizeChanged: boolean); virtual;

C++

virtual void __fastcall ViewportPositionChange(const System::Types::TPointF &OldViewportPosition, const System::Types::TPointF &NewViewportPosition, const bool ContentSizeChanged);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Layouts.pas
FMX.Layouts.hpp
FMX.Layouts TCustomScrollBox

Description

Executed when the viewport position changes.

ViewportPositionChange receives the following parameters:

  • OldViewportPosition is the value that the ViewportPosition property had before it changed.
  • NewViewportPosition is the new value of the ViewportPosition property.
  • ContentSizeChanged indicates whether the size of the content of the viewport has changed as well (True) or not (False).

ViewportPositionChange calls the handler of the OnViewportPositionChange event.