FMX ScrollBox 拖拽控制

Posted lypzxy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FMX ScrollBox 拖拽控制相关的知识,希望对你有一定的参考价值。

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 拖拽控制的主要内容,如果未能解决你的问题,请参考以下文章

Firemonkey ScrollBox 错误

tkinter scrollbox

简单拖拽即生成网页 VvvebJs

虚幻引擎UE4如何制作可拖动(Drag and Drop)的背包(Scrollbox)

WPF 矩形框8个控制点伸缩及拖拽

VCL 和 FMX 组件如何同名?