B4A Question Input Types for ViewsEx and Event Problem - Erel (first post)    Jul 2, 2018
t2.EditText.InputType = Bit.Or(Bit.Or(0x80000, 0x2000), t2.EditText.InputType)
... B4A Question AS_TextFieldAdvanced Title font and IputType - Rafael Grossi (first post)    May 6, 2025   (1 reaction) Title issue solved! About the InputType issue, I used to do this with standard edittext this way: EditText1.InputType = Bit.Or(EditText1.INPUT_TYPE_TEXT, 8192) But I can't do this: AS_TextFieldAdvanced1.TextField.InputType = Bit.Or(AS_TextFieldAdvanced1.INPUT_TYPE_TEXT, 8192) The code above doesn't work. So I did: Dim jo As JavaObject = AS_TextFieldAdvanced1.TextField jo.RunMethod("setInputType", Array(Bit.Or(0x00000001, 0x00002000))) And problem solved. Thanks... B4A Question Input Type in B4x - stevenindon (first post)    Dec 19, 2021 Thank you Erel. The above code is applicable for B4A. What about B4i?
#if B4A
YourView.As(EditText).InputType = YourView.As(EditText).INPUT_TYPE_NUMBERS
#if B4i
YourView.As(TextField).InputType = YourView.As(TextField).INPUT_TYPE_NUMBERS <<---???
#end if
This wont work in B4i compiler... Wish (solved, it's there)Turn off IME suggestions - LucaMs (first post)    Apr 3, 2017 EditText1.InputType = Bit.Or(EditText.InputType, 524288)
... B4A Question Keyboard not visible - ronell (first post)    Jun 11, 2017 edittext1.InputType = edittext1.INPUT_TYPE_NONE... B4A Question EditText properties - Kwame Twum (first post)    Jan 18, 2016   (1 reaction) edittext1.InputType = edittext1.INPUT_TYPE_NUMBERS you can also do it with the designer 40737... B4A Question Inputtype - ronell (first post)    May 16, 2017   (1 reaction) EditText1.InputType = Bit.Or(EditText1.INPUT_TYPE_TEXT, 0x00000020)... B4A Question EditText1_FocusChanged - WDK    Nov 17, 2017 I am trying to hide my banner when the edittext1 has focus and show my banner on end focus of edittext1. I get a true in the HasFocus boolean, but never a false. How can I determine if my edittext1 no longer has focus? Sub Activity_Create(FirstTime As Boolean) EditText1.InputType = EditText1.INPUT_TYPE_DECIMAL_NUMBERS End Sub Sub EditText1_FocusChanged (HasFocus As Boolean) ToastMessageShow(HasFocus,True) if HasFocus = True then Appodeal2.hide(Appodeal2.BANNER_BOTTOM) else Appodeal2.show... B4A Question EditText does not show cursor. - MitchBu (first post)    May 13, 2020 You could try: EditText.RequestFocus and also make sure that: EditText.InputType=EditText.INPUT_TYPE_TEXT (and not INPUT_TYPE_NONE): Check your designer setting. You do not understand. I cannot use the standard keyboards, because they are inadequate. However, I was indeed able to set the EditField to numeric keyboard, and to use IME to prevent it to show. So now I get the cursor alright. Thanks.... B4A Question How to re-enable spell check ? - DonManfred (first post)    Sep 16, 2014   (2 reactions) .InputType) ' remember the old input-type Dim remark As Int = EditText1.InputType EditText1.InputType = Bit.OR(EditText1.InputType, 524288) Log("no suggestion"&EditText1.InputType) ' ' Do whatever you need to do without suggestions... ' ' restore the old inputtype to put on suggestions again EditText1.InputType = remark Log("after restoring:"&EditText1...Ed.InputType = Bit.OR(Ed.InputType, 524288) how would I turn it back on again? I dont know how to... Page: 1   2   3   4   5   6   7   |