5

I am trying to write an iPhone app using Delphi XE2 / FireMonkey and have got past many of the initial hurdles, but am now stuck on gesture handling.

I have created a test app with a TVertScrollBox, but I cannot scroll the contents, unless I enable the scroll bars (which are very thin), and touch those. This is not very iPhone friendly (and almost unusable). Would appreciate a pointer in the right direction.

Documentation seems to suggest using UIGestureRecognizer...

http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizers/GestureRecognizers.html

...however these need to be attached to a View, whereas the app is using a FireMonkey form.

Any thoughts would be appreciated.

Peter
  • 1,065
  • 6
  • 18
  • Native support for gestures in FireMonkey is not implemented at the moment. – LU RD Oct 25 '11 at 05:24
  • Thanks LU RD, I know there is no native support as yet, I was hoping I could leverage the cocoa framework to achieve what I need. Probably should have been a bit clearer in my question. – Peter Oct 25 '11 at 08:55
  • Just wanted to clear that point. I will skip the early adoption phase waiting for FireMonkey to mature a bit. – LU RD Oct 25 '11 at 11:45

3 Answers3

6

I have worked out how to do this...

The TVertScrollBox control needs to have the MouseTracking property set to True.

All controls added to the TVertScrollBox then need to have their HitTest property (if it exists) set to False. After that it just works!

Peter
  • 1,065
  • 6
  • 18
1

With Delphi Xe3, Fire monkey as support for basic gestures (zoom, rotation, pan) But officially Xe3 doesn't support anymore "IOS" as a target. You have to wait beginning of 2013 for the release of their "mobile studio" extension

Sisko
  • 81
  • 1
  • 2
-1

Gestures not in FireMonkey at the moment.

PCPGMR
  • 340
  • 2
  • 7