iOS Question KeyboardStateChanged not fired

Discussion in 'iOS Questions' started by miquelr, May 26, 2015.

  1. miquelr

    miquelr Member Licensed User

    KeyboardStateChanged event no fired. Any idea?
    B4i v. 1.8
     
  2. Filippo

    Filippo Expert Licensed User

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

    Sub page1_KeyboardStateChanged (Height As Float)
    ....
    End Sub
     
  3. miquelr

    miquelr Member Licensed 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
     
  4. Filippo

    Filippo Expert Licensed User

    So it can not work!
    There is no view (TextView) that triggers this event.
     
  5. miquelr

    miquelr Member Licensed User

    Hi,
    I have used TextFied instead of TextView. With TextView the event is fired ok.
    Thank you very much.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice