C Cor Active Member Licensed User Longtime User Dec 14, 2010 #1 I want to detect the 'DONE' key from the onscreen keyboard want to execute a sub when done I cannot find the keycode for it, or isn't this possible? grCor
I want to detect the 'DONE' key from the onscreen keyboard want to execute a sub when done I cannot find the keycode for it, or isn't this possible? grCor
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2010 #2 The problem is that the EditText consumes this key press. I will check how it can be implemented. Upvote 0
D diego Member Licensed User Longtime User Dec 18, 2010 #3 is it possible to force numeric 'phone' keyboard? now when entering editText it shows the keyboard 1 2 3 4 5 6 7 8 9 0 @ # $ %.... I'd like to set the keyboard 1 2 3 4 5 6 7 8 9 * 0 _ Upvote 0
is it possible to force numeric 'phone' keyboard? now when entering editText it shows the keyboard 1 2 3 4 5 6 7 8 9 0 @ # $ %.... I'd like to set the keyboard 1 2 3 4 5 6 7 8 9 * 0 _
C Cor Active Member Licensed User Longtime User Dec 18, 2010 #4 set inputtype in designer as numbers Upvote 0
D diego Member Licensed User Longtime User Dec 18, 2010 #5 Input Type is already set to Numbers, but I need to show the numeric keyboard with the phone appearence (or any numeric keyboard), not the numbers one after each other. Upvote 0
Input Type is already set to Numbers, but I need to show the numeric keyboard with the phone appearence (or any numeric keyboard), not the numbers one after each other.
C Cor Active Member Licensed User Longtime User Dec 18, 2010 #6 You will have to make your own layout for this grCor Upvote 0
D diego Member Licensed User Longtime User Dec 19, 2010 #7 Googling I found that there is a way to do this, but Erel should add this value to EditText InputType's: INPUT_TYPE_PHONE InputType | Android Developers Another way that works: someedittex.InputType=3 Last edited: Dec 19, 2010 Upvote 0
Googling I found that there is a way to do this, but Erel should add this value to EditText InputType's: INPUT_TYPE_PHONE InputType | Android Developers Another way that works: someedittex.InputType=3
D diego Member Licensed User Longtime User Dec 19, 2010 #9 thank you Erel. In the meanwhile, I'm trying to set this value to every EditText view in my 'testapp', but I'm doing something wrong, it doesn't change with this code: Code: For i = 0 To Activity.NumberOfViews - 1 If activity.GetView(i) Is EditText Then Dim myfield As EditText myfield=activity.GetView(i) myfield.InputType = 3 End If Next ToastMessageShow(i, False) all views are in a layout loaded to a tabHost, could it be the problem? ToastMessageShow line returns '1' when there are about 20 edittexts... Upvote 0
thank you Erel. In the meanwhile, I'm trying to set this value to every EditText view in my 'testapp', but I'm doing something wrong, it doesn't change with this code: Code: For i = 0 To Activity.NumberOfViews - 1 If activity.GetView(i) Is EditText Then Dim myfield As EditText myfield=activity.GetView(i) myfield.InputType = 3 End If Next ToastMessageShow(i, False) all views are in a layout loaded to a tabHost, could it be the problem? ToastMessageShow line returns '1' when there are about 20 edittexts...
Erel B4X founder Staff member Licensed User Longtime User Dec 19, 2010 #10 Activity.GetView returns activity direct child views. If you are using TabHost.AddTab2 and you are adding a panel then you can iterate over the panel's child views. Upvote 0
Activity.GetView returns activity direct child views. If you are using TabHost.AddTab2 and you are adding a panel then you can iterate over the panel's child views.
Rusty Well-Known Member Licensed User Longtime User Feb 2, 2011 #11 Did you ever resolve this question? If so, can you tell me how this is done? Also, I would like to know how to detect the NEXT key, if possible. Upvote 0
Did you ever resolve this question? If so, can you tell me how this is done? Also, I would like to know how to detect the NEXT key, if possible.
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2011 #12 You can detect the 'Done' button by handling the EditText_EnterPressed event. You can also force the virtual keyboard to show the Done button by setting EditText.ForceDone = True. You cannot catch the Next key for now. Upvote 0
You can detect the 'Done' button by handling the EditText_EnterPressed event. You can also force the virtual keyboard to show the Done button by setting EditText.ForceDone = True. You cannot catch the Next key for now.