Jmu5667 Well-Known Member Licensed User Longtime User May 14, 2020 #1 Hello As you are all aware the numkeypad has no done button. I came across this https://stackoverflow.com/questions/584538/how-to-show-done-button-on-iphone-number-pad, can anyone try to convert this to b4i Regards John.
Hello As you are all aware the numkeypad has no done button. I came across this https://stackoverflow.com/questions/584538/how-to-show-done-button-on-iphone-number-pad, can anyone try to convert this to b4i Regards John.
Semen Matusovskiy Well-Known Member Licensed User May 14, 2020 #2 Create ordinary panel (let's name it panelKeyboard) with buttons and set inputAccessoryView property of relevant TextField/TextView Code: Copy nativeObjectInstance = textFieldAnswer nativeObjectInstance.SetField ("inputAccessoryView", panelKeyboard) Upvote 0
Create ordinary panel (let's name it panelKeyboard) with buttons and set inputAccessoryView property of relevant TextField/TextView Code: Copy nativeObjectInstance = textFieldAnswer nativeObjectInstance.SetField ("inputAccessoryView", panelKeyboard)
OliverA Expert Licensed User Longtime User May 14, 2020 #3 To expand on @Semen Matusovskiy's answer, here is a code snippet by @Erel on adding a button to TextField that pops up over the number's keyboard: Code: Copy Dim b As Button b.Initialize("b", b.STYLE_SYSTEM) b.Text = "Click me" b.Width = 100 b.Height = 50 Dim no As NativeObject = TextField1 no.SetField("inputAccessoryView", b) So if TextField1 has the Keyboard Type set to NUMBER_PAD in the designer (or code), then the code above will add a "Click me" button above the number pad. Source: https://www.b4x.com/android/forum/threads/input-accessory-views.51000/post-318960 Upvote 0
To expand on @Semen Matusovskiy's answer, here is a code snippet by @Erel on adding a button to TextField that pops up over the number's keyboard: Code: Copy Dim b As Button b.Initialize("b", b.STYLE_SYSTEM) b.Text = "Click me" b.Width = 100 b.Height = 50 Dim no As NativeObject = TextField1 no.SetField("inputAccessoryView", b) So if TextField1 has the Keyboard Type set to NUMBER_PAD in the designer (or code), then the code above will add a "Click me" button above the number pad. Source: https://www.b4x.com/android/forum/threads/input-accessory-views.51000/post-318960