FMX ScrollBox 拖拽控制
2016-05-25 09:31
435 查看
Firemonkey下的ScrollBox 拖拽控制,滚动控制,拖拽,滚动条
AniCalculations
仅允许纵向拖拽,拖拽
锁死不让拖拽。
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:
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 are hidden automatically when they are not needed (via the TAniCalculations.Shown property).
other properties of the TScrollCalculations object.
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:
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 are hidden automatically when they are not needed (via the TAniCalculations.Shown property).
other properties of the TScrollCalculations object.
相关文章推荐
- 计算机视觉
- ehcache版本问题
- HDU 4862 Jump (最大费用流 | 经典建图)
- 详解OC的类和对象的底层实现机制
- faster-rcnn cpu实现
- Android socket 编程 实现消息推送(二)
- nginx如何开启https协议
- OC 字符串
- 二叉树的建立
- “领导喊你去办公室”电信诈骗现沪 专骗公务员
- angular js点击tab中的li标签加载相应div区域
- C语言学习心得一:__stdcall、__cdcel和__fastcall三者的区别(三者是对编译器层面的影响,对程序业务逻辑不影响)
- mac下查看端口使用的程序并强制关闭
- 函数式编程初探
- Linux Shell系列教程之(四)Shell注释
- 爬虫的框架
- js储存参数的数组arguments
- HTTP Status
- python np.linspace
- Android自定义button点击效果的两种方式