Prosg Active Member Licensed User Longtime User Nov 26, 2015 #1 Hello, I use B4X: oIME.showKeyboard(txtPointsForts) to show the keyboard for my editText (no singleline) but i don't know how to add the "Return" key in the keyboard ? ty
Hello, I use B4X: oIME.showKeyboard(txtPointsForts) to show the keyboard for my editText (no singleline) but i don't know how to add the "Return" key in the keyboard ? ty
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2015 #2 The return key should appear automatically on multiline EditTexts. Upvote 0
Prosg Active Member Licensed User Longtime User Nov 26, 2015 #3 strange cause it doesn't appear my code is : B4X: lblTitre.Text ="Mes points forts" txtPointsForts.Initialize("txtTitrePointsForts") txtPointsForts.SingleLine = False txtPointsForts.Gravity = Gravity.TOP txtPointsForts.Text = result Activity.AddView(txtPointsForts,0%x,10%y, 100%x, 100%y) InpTyp.SetInputType(txtPointsForts,Array As Int(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES)) oIME.showKeyboard(txtPointsForts) Edit if i comment this line 'InpTyp.SetInputType(txtPointsForts,Array As Int(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES)) it's works any idea why ? Last edited: Nov 26, 2015 Upvote 0
strange cause it doesn't appear my code is : B4X: lblTitre.Text ="Mes points forts" txtPointsForts.Initialize("txtTitrePointsForts") txtPointsForts.SingleLine = False txtPointsForts.Gravity = Gravity.TOP txtPointsForts.Text = result Activity.AddView(txtPointsForts,0%x,10%y, 100%x, 100%y) InpTyp.SetInputType(txtPointsForts,Array As Int(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES)) oIME.showKeyboard(txtPointsForts) Edit if i comment this line 'InpTyp.SetInputType(txtPointsForts,Array As Int(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES)) it's works any idea why ?
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2015 #4 What is InpType? Try this: B4X: txtPointsForts.InputType = Bit.Or(txtPointsForts.InputType, Bit.Or(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES)) Upvote 0
What is InpType? Try this: B4X: txtPointsForts.InputType = Bit.Or(txtPointsForts.InputType, Bit.Or(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES))