码迷,mamicode.com
首页 > 其他好文 > 详细

FMX ScrollBox 拖拽控制

时间:2016-05-25 10:57:44      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:

Firemonkey下的ScrollBox 拖拽控制,滚动控制。

AniCalculations

仅允许纵向拖拽

scrlbx.AniCalculations.TouchTracking := [System.UITypes.ttVertical];

锁死不让拖拽。

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 you 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 you can set:

 

FMX ScrollBox 拖拽控制

标签:

原文地址:http://www.cnblogs.com/cb168/p/5525877.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!