tsteward Well-Known Member Licensed User Longtime User Jan 3, 2021 #1 I have an edittext on a panel in a tabstrip. I click on the edittext and the keyboard opens but the IME_HeightChanged never gets called Anything special I need to know when using tabstrip etc?
I have an edittext on a panel in a tabstrip. I click on the edittext and the keyboard opens but the IME_HeightChanged never gets called Anything special I need to know when using tabstrip etc?
bl4ck4nt Member Licensed User Longtime User Apr 15, 2021 #21 Erel said: Project with TabStrip + IME + B4XPages is attached. Works fine. Click to expand... I tried this sample and it was successful, but if edittext1 is moved to bottom then edittext1 is under the keyboard so it is not visible... What do i need to add so that edittext1 can appear up the keyboard...? Attachments screenshot-1618472414120.jpg 135.6 KB · Views: 392 screenshot-1618472437583.jpg 29.4 KB · Views: 415 Upvote 0
Erel said: Project with TabStrip + IME + B4XPages is attached. Works fine. Click to expand... I tried this sample and it was successful, but if edittext1 is moved to bottom then edittext1 is under the keyboard so it is not visible... What do i need to add so that edittext1 can appear up the keyboard...?
M Mahares Expert Licensed User Longtime User Apr 15, 2021 #22 bl4ck4nt said: What do i need to add so that edittext1 can appear up the keyboard...? Click to expand... In Main module put this code: Code: Copy Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int) B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight)) Log("IME_HeightChanged: " & NewHeight) End Sub And in B4XMainPage add this: Code: Copy Private edittext1 As EditText 'in class globals or as B4XView Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int) edittext1.Top = NewHeight-edittext1.Height-50dip End Sub Upvote 0
bl4ck4nt said: What do i need to add so that edittext1 can appear up the keyboard...? Click to expand... In Main module put this code: Code: Copy Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int) B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight)) Log("IME_HeightChanged: " & NewHeight) End Sub And in B4XMainPage add this: Code: Copy Private edittext1 As EditText 'in class globals or as B4XView Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int) edittext1.Top = NewHeight-edittext1.Height-50dip End Sub