How to prevent soft keypad from pushing up whole layout


Romeo Ross

Hi David

How can I prevent the background from pushing up in the app when the keypad comes up as per picture below...?

It looks all squashed.

Thank you


DecSoft

Hello Romeo,

If we are talking about AB1, then the solution will be the below code in the Show event of the app view:

If we are talking about AB2 (the current generation of the product), then the solution will be the below code in the Show event of the app view:

In the case of AB2, if we are talking about a dialog instead of a view, then we must use the below function instead of the above one in the same Show event of the app view:

You can find more information about the above functions in the product help and also in the online help: app.setViewReadyForDeviceKeyboard(); - app.setDialogReadyForDeviceKeyboard();



Romeo Ross

Thanks worked like a charm!!


DecSoft

Hello!

Thanks worked like a charm!!

Glad to know Romeo. :)


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.