1

Where can i find the list of possible values for TouchTracking on a TScrollBox?

ScrollBox->AniCalculations->TouchTracking = ??

I want to disable the scrollbox scrolling temporarily. This question shows for Delphi but i'm too inexperienced to know how to convert to C++.

relayman357
  • 793
  • 1
  • 6
  • 30
  • For now i'm just doing `ScrollBox1->Enabled = False;` – relayman357 Sep 03 '19 at 23:30
  • 1
    *Where can I find ...* The [documentation](http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.InertialMovement.TAniCalculations.TouchTracking) should be the first place to look, no? I used the **index** and searched for *touchtracking*. – Tom Brunberg Sep 04 '19 at 05:59
  • Thanks Tom. I just don't know the syntax. `Form1->ScrollBox1->AniCalculations->TouchTracking = ttHorizontal;` doesn't work. – relayman357 Sep 04 '19 at 15:04
  • 1
    As `TTouchTracking` is a `set` type, use the set operators `<<` (to insert to the set) and `>>` (to exctract from the set) – Tom Brunberg Sep 04 '19 at 17:55
  • Thanks Tom, I should have thought of that as Remy helped me last year with similar use of <<. Obviously, i don't code for a living (just fun). `ScrollBox1->AniCalculations->TouchTracking = TTouchTracking() << ttHorizontal;` – relayman357 Sep 04 '19 at 18:09

1 Answers1

1

From the designer select the scrollbox and then Touch -> Interactive gestures and untick Pan (from object inspector).

devilj
  • 11
  • 3