I've got a problem with Delphi FMX (Berlin update 1) on iOS (10.2). I have a scrolbox with TEdits. The scrolling works like a charm as long as I don't touch a TEdit as first. When I do that de TEdit immediately receives focus and shows the virtualkeyboard.

I've got a problem with Delphi FMX (Berlin update 1) on iOS (10.2). I have a scrolbox with TEdits. The scrolling works like a charm as long as I don't touch a TEdit as first. When I do that de TEdit immediately receives focus and shows the virtualkeyboard.

The normal platform behaviour should be that de TEdit only receives focus when you tap on it. Not when you start a scroll on it.

Has anybody got a solution for this problem?

Comments

  1. I've found a work-a-round. I cycle through all the controls on a form and:

    - Set the CanFocus property to FALSE.
    - Assign OnClick which sets the CanFocus to TRUE and calls SetFocus for the Sender.
    - Assign OnTap which does the same.
    - Assign OnExit which sets the CanFocus property to FALSE.

    ReplyDelete

Post a Comment