FMX.Layouts.TCustomScrollBox.CreateAniCalculations

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateAniCalculations: TScrollCalculations; virtual;

C++

virtual TScrollCalculations* __fastcall CreateAniCalculations();

Properties

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

Description

Constructs a TScrollCalculations type object in which you can set properties and calculate parameters of the inertial scrolling.

CreateAniCalculations calls the TScrollCalculations.Create constructor to create a TScrollCalculations object. The created object is kept in the AniCalculations property of the current TScrollBox instance. Using this TScrollCalculations object you can set the Animation, DecelerationRate, BoundsAnimation, AutoShowing, and Shown properties of inertial scrolling. TScrollCalculations is the descendant of the TAniCalculations class, which provides methods to calculate parameters of the inertial scrolling.

UpdateAniCalculations calls CreateAniCalculations to create a TScrollCalculations object and then calls DoUpdateAniCalculations to set the default inertial scrolling properties under the current platform.

See Also