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. :)


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.