Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
10
Erster Beitrag:
vor 1 Jahr, 6 Monaten
Letzter Beitrag:
vor 4 Monaten, 1 Woche
Beteiligte Autoren:
CCC2, Arie, Wim Nihoul, EdwinHL, Danny Lauwers, Fabrice Harari, ccc2

[WM20 android] keyboard in edit

Startbeitrag von CCC2 am 22.01.2016 04: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?

Antworten:

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.

von Arie - am 22.01.2016 08:50
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

von Fabrice Harari - am 22.01.2016 12:45
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

von CCC2 - am 22.01.2016 12:51
Hi,

You can also show or hide the keyboard via code:

SIPVISIBLE (http://doc.windev.com/en-US/?3071013&name=SIPVisible)

Danny

von Danny Lauwers - am 22.01.2016 13:03
Quote
Danny Lauwers
Hi,

You can also show or hide the keyboard via code:

SIPVISIBLE (http://doc.windev.com/en-US/?3071013&name=SIPVisible)

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.

von CCC2 - am 22.01.2016 15:44
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"

von Arie - am 22.01.2016 16:11

Re: [WM20 android] keyboard in edit (SOLVED)

Quote
Danny Lauwers
Hi,

You can also show or hide the keyboard via code:

SIPVISIBLE (http://doc.windev.com/en-US/?3071013&name=SIPVisible)

Danny


This function finally work in WM21

von ccc2 - am 08.12.2016 12:21
You can also try changing the state of the edit control like this

In the exit section of the relevant control you put:

IF InAndroidMode() THEN myself..State=DisplayOnly

In the "Pressed\Left button down" section of the control you put:

IF InAndroidMode() THEN myself..State=Active


If the control is active by default (in the description of the control), you can put in the Global declaration of the window:

IF InAndroidMode() THEN youreditcontrol..state=DisplayOnly


Wim

von Wim Nihoul - am 09.12.2016 11:35

Re: [WM20 android] keyboard in edit (SOLVED)

Thanks this worked for me!

Quote
Wim Nihoul
You can also try changing the state of the edit control like this

In the exit section of the relevant control you put:

IF InAndroidMode() THEN myself..State=DisplayOnly

In the "Pressed\Left button down" section of the control you put:

IF InAndroidMode() THEN myself..State=Active


If the control is active by default (in the description of the control), you can put in the Global declaration of the window:

IF InAndroidMode() THEN youreditcontrol..state=DisplayOnly


Wim


von EdwinHL - am 11.04.2017 08:34
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.