PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WM20 android] keyboard in edit
[WM20 android] keyboard in edit
Iniciado por guest, 22,ene. 2016 05:04 - 6 respuestas
Publicado el 22,enero 2016 - 05:04
Hi,
why is it that some edit control can cause keyboard auto come out when open window some NO


i have a window with few edit control. when I call the window, the keyboard auto popup . i don't get this effect on other window (which also has edit control) . I delete the controls and recreate . other than control name and caption change the rest is default . I save/deploy, this time the keyboard not auto popup

anyone having such weird problem?
Publicado el 22,enero 2016 - 09:50
Yes I have the same probleem. Must be a bug in WM.
Sometimes it works and after deploying a new version all of a sudden the keyboard pops up again.

The checkbox control does not need a keyboard. So I managed to get a workaround in most cases by adding a 1x1 pixel checkbox control, somewhere in de corner of the window. And make that your first control in the tab-sequence. Afaik the control must be visible and in the visible part of the window. Otherwise WM or Android ignores it.
Publicado el 22,enero 2016 - 13:45
Hi

in my experience, it just depends on which control has the focus when opening. IF it's an edit control, then hop, keyboard, which is normal
if it's a button, then no keyboard

So the tab order should solve the problem
Publicado el 22,enero 2016 - 13:51
Quote
Fabrice Harari

Hi





in my experience, it just depends on which control has the focus when opening. IF it's an edit control, then hop, keyboard, which is normal


if it's a button, then no keyboard





So the tab order should solve the problem

Thanks Fabrice . Problem solved .

since the tab is gray out in window properties , I though the function not supported in android . I guess it still effect
Publicado el 22,enero 2016 - 14:03
Hi,

You can also show or hide the keyboard via code:

SIPVISIBLE (http://doc.windev.com/en-US/…)

Danny
Publicado el 22,enero 2016 - 16:44
Quote
Danny Lauwers

Hi,





You can also show or hide the keyboard via code:





SIPVISIBLE (http://doc.windev.com/en-US/…)





Danny

i tried that function before . it's not working on my android device (cyanogenmod 4.4.2) .

perhaps it work on other device or version , hope who had tried (not on emulator ) can share the result.
Publicado el 22,enero 2016 - 17:11
Here's a post about this topic which clarifies things
http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard

At the end someone says you can add a setting to the manifest. Maybe you can try that?
android:windowSoftInputMode="stateAlwaysHidden"