Firemonkey under the Scrollbox drag control, scroll control.
Anicalculations
Vertical drag only allowed
SCRLBX. Anicalculations.touchtracking: = [System.UITypes.ttVertical];
The lock is not allowed to drag.
StringGrid1.AniCalculations.TouchTracking: =[];
Stringgrid1.anicalculations.autoshowing:=false;
Anicalculations.boundsanimation: = false;
Framepinfo.stringgrid1.locked:=true;
FMX. Layouts.TCustomScrollBox.AniCalculations
Allows you to set various parameters that control the inertial scrolling effect animation.
anicalculations keeps a Tscrollcalculations object created by Createanicalculations. Using properties of this object can programmatically set values for inertial scrolling properties in order to emulate On the current platform the inertial scrolling behavior typical for other platforms. For example, you can select the emulation of the IOS scrolling behavior under Windows and Vice-versa. Tscrollcalculations is the descendant of the Tanicalculations class, which provides methods to calculate parameters of the Inertial scrolling.
By using anicalculations can set:
- Whether the scrolling is animated (via the Tanicalculations.animation property).
- The deceleration rate of the inertial scrolling (via the Tanicalculations.decelerationrate property).
- Whether The inertial scrolling is bound to the area (via the Tanicalculations.boundsanimation property).
- Whether the scrolling bars appear automatically when the scroll action is initiated (via the tanicalculations.autoshowing property).
- Whether the scrolling bars is hidden automatically when they is not needed (via the Tanicalculations.shown property).
- Other properties of the Tscrollcalculations object.
FMX Scrollbox Drag Control