FMX Scrollbox Drag Control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.