Jack Cole Well-Known Member Licensed User Longtime User Jul 20, 2011 #1 I'm trying to hide the keyboard after a user inputs their name with an inputdialog. For example: Code: result=i.Show("Enter your name for the top scores list.","Save scores?","OK","","No Thanks",Null) dim p as phone p.HideKeyboard(Activity) The trouble is, it doesn't hide the keyboard. Am I doing something wrong?
I'm trying to hide the keyboard after a user inputs their name with an inputdialog. For example: Code: result=i.Show("Enter your name for the top scores list.","Save scores?","OK","","No Thanks",Null) dim p as phone p.HideKeyboard(Activity) The trouble is, it doesn't hide the keyboard. Am I doing something wrong?
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2011 #2 It is not possible to use HideKeyboard with a keyboard that was added for a dialog. This is a limitation of dialogs. Upvote 0
It is not possible to use HideKeyboard with a keyboard that was added for a dialog. This is a limitation of dialogs.
JesseW Active Member Licensed User Longtime User Aug 23, 2011 #3 I was able to achieve some success hiding the keyboard that was raised by agrahams custom dialogs by placing a DoEvents before and after the ph.HideKeyboard statement. And it also seemed to help a little to do a little processing, like checking the validity and format of an entered number, before trying to hide it. Like this Code: DoEvents ph.HideKeyboard(Activity) DoEvents Erel, is there a chance you might include ph.ShowKeyboard in your next release? Andrew, would you be so kind to show us a ShowKeyboard workaround using your Reflection object? Many thanks Last edited: Aug 23, 2011 Upvote 0
I was able to achieve some success hiding the keyboard that was raised by agrahams custom dialogs by placing a DoEvents before and after the ph.HideKeyboard statement. And it also seemed to help a little to do a little processing, like checking the validity and format of an entered number, before trying to hide it. Like this Code: DoEvents ph.HideKeyboard(Activity) DoEvents Erel, is there a chance you might include ph.ShowKeyboard in your next release? Andrew, would you be so kind to show us a ShowKeyboard workaround using your Reflection object? Many thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2011 #4 Erel, is there a chance you might include ph.ShowKeyboard in your next release? Click to expand... I'm not saying that it is impossible, however I didn't yet find a reliable way to show the keyboard. So no promises here... Upvote 0
Erel, is there a chance you might include ph.ShowKeyboard in your next release? Click to expand... I'm not saying that it is impossible, however I didn't yet find a reliable way to show the keyboard. So no promises here...
kolbe Active Member Licensed User Longtime User May 28, 2014 #5 Erel said: It is not possible to use HideKeyboard with a keyboard that was added for a dialog. This is a limitation of dialogs. Click to expand... The workaround I used to this is using the keygen library to send a 4. It works on a separate thread but basically you send yourself a back_key keypress. This should hide the keyboard. Perhaps other devices could use something other than 4, so use the keypress sub to see what your back key generates. Upvote 0
Erel said: It is not possible to use HideKeyboard with a keyboard that was added for a dialog. This is a limitation of dialogs. Click to expand... The workaround I used to this is using the keygen library to send a 4. It works on a separate thread but basically you send yourself a back_key keypress. This should hide the keyboard. Perhaps other devices could use something other than 4, so use the keypress sub to see what your back key generates.