iOS Question KeyboardStateChanged not fired

D

Deleted member 103

Guest
What is the name your page and your sub?
B4X:
Dim page1 as Page

Sub page1_KeyboardStateChanged (Height As Float)
....
End Sub
 
Upvote 0

miquelr

Member
Licensed User
Longtime User
Hi Filippo,

Here is a small program that does not work:


'Code module
#Region Project Attributes
#ApplicationLabel: crm
#Version: 1.0.0
'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait
#iPadOrientations: LandscapeLeft
#End Region

Sub Process_Globals

Private NavControl As NavigationController
Private Page2 As Page

End Sub

Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
NavControl.NavigationBarVisible = True
'NavControl.ToolBarVisible = True
Page2.Initialize("Page2")
Page2.RootPanel.LoadLayout("fichaEmpresa1")
Page2.Title = "Empresa"
' Dim b1, b2 As BarButton
' b1.InitializeText("Cancelar", "cancelar")
' b2.InitializeText("Grabar", "grabar")
' Page2.TopLeftButtons = Array(b1)
' Page2.TopRightButtons = Array(b2)
NavControl.ShowPage(Page2)
End Sub

Private Sub Application_Active

End Sub

Private Sub Application_Inactive

End Sub

Private Sub Application_Background

End Sub

Sub Page2_KeyboardStateChanged(Height As Float)
Log("Current keyboard height: " & Height)
End Sub
 
Upvote 0
D

Deleted member 103

Guest
So it can not work!
There is no view (TextView) that triggers this event.
 
Upvote 0

miquelr

Member
Licensed User
Longtime User
Hi,
I have used TextFied instead of TextView. With TextView the event is fired ok.
Thank you very much.
 
Upvote 0
Top