Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Wrong coordinates in FormVirtualKeyboardShown Bounds parameter


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Aug 31, 2015 10:37 AM Last Post By: Markus Humm
Markus Humm

Posts: 24
Registered: 12/17/09
Wrong coordinates in FormVirtualKeyboardShown Bounds parameter  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2015 5:24 AM
Hello,

in my XE8 Android app I have a problem with the values delivered in the Bounds parameter
of the FormVirtualKeyboardShown event.

In two different forms I'm using this event to find out whether I need to scroll the screen
because the keyboard is over the current input field or not.

On the first screen, my main screen, this works. On the other screen the bound parameter
of this even delivers bogus values. All valuues are high negative numbers and thus height
gives a 6 digit or so positive number.

This is on a Nexus 4 with Android 5.1.1 and I can reproduce it 100% of the time.
On an older HTC Desire C with Android 4.0.4 I do get high positive values, but still
lightyears off.

Any ideas why this happens? Is this a bug? I couldn't find anything in QP.

Greetings

Markus
Malcolm Taylor

Posts: 148
Registered: 7/16/01
Re: Wrong coordinates in FormVirtualKeyboardShown Bounds parameter  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2015 8:55 AM   in response to: Markus Humm in response to: Markus Humm
Markus

There was a blog last year which may shed some light.
It was all about trying to get the scroling to work properly with a
VKbd.
The contributors claim their TControlMover component now works for iOS
but there is still an issue on Android.

Google for TControlMover and you should find the, long, blog.
Maybe it has some info you can use.

Malcolm
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Wrong coordinates in FormVirtualKeyboardShown Bounds parameter  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2015 10:37 AM   in response to: Malcolm Taylor in response to: Malcolm Taylor
Malcolm Taylor wrote:
Markus

There was a blog last year which may shed some light.
It was all about trying to get the scroling to work properly with a
VKbd.
The contributors claim their TControlMover component now works for iOS
but there is still an issue on Android.

Google for TControlMover and you should find the, long, blog.
Maybe it has some info you can use.

Malcolm

Hello Malcom,

thanks for that pointer. I'll search for it. It's simply strange that it works on one but not the other window.
I just wanted to have more data before actually filing a bug report.

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02