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.

3
  • Native support for gestures in FireMonkey is not implemented at the moment. Commented Oct 25, 2011 at 5: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. Commented Oct 25, 2011 at 8:55
  • Just wanted to clear that point. I will skip the early adoption phase waiting for FireMonkey to mature a bit. Commented Oct 25, 2011 at 11:45

3 Answers 3

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!

Sign up to request clarification or add additional context in comments.

Comments

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

Comments

-1

Gestures not in FireMonkey at the moment.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.