davepamn Active Member Licensed User Longtime User Aug 7, 2014 #1 I activated the IME library Sub Globals oIME as ime end sub sub activity_create(firstime as boolean) oIME.Initialize("Keyboard") end sub if a radiobutton is clicked than I set the focus on a textbox and then want the keyboard to appear automatically. It speeds up user interaction. sub radioCustom_checkedchange(checked as boolean) txtTruckNumber.requestfocus 'works oIME.ShowKeyboard(activity) 'fails end sub
I activated the IME library Sub Globals oIME as ime end sub sub activity_create(firstime as boolean) oIME.Initialize("Keyboard") end sub if a radiobutton is clicked than I set the focus on a textbox and then want the keyboard to appear automatically. It speeds up user interaction. sub radioCustom_checkedchange(checked as boolean) txtTruckNumber.requestfocus 'works oIME.ShowKeyboard(activity) 'fails end sub
barx Well-Known Member Licensed User Longtime User Aug 7, 2014 #2 Don't request focus. Instead do B4X: oIME.showKeyboard(txtTrunkNumber) Upvote 0
davepamn Active Member Licensed User Longtime User Aug 7, 2014 #3 thanks That worked When the documentation says activity, it must mean control Upvote 0
barx Well-Known Member Licensed User Longtime User Aug 7, 2014 #4 I believe it says View. I View being an Android control. The online docs definitely say View. Glad it works though Upvote 0
I believe it says View. I View being an Android control. The online docs definitely say View. Glad it works though