Bug? Bug using KeyboardStateChanged

JackKirk

Well-Known Member
Licensed User
Longtime User
I have attached a simple little example which when compiled and run in debug mode produces this message, in red, in the log:

Unexpected event (missing RaisesSynchronousEvents): page1_keyboardstatechanged:

It doesn't cause a crash in either debug mode or when a release compilation is launched so it could probably be regarded as minor but it is definitely disconcerting to the unwashed (e.g. me) and is certainly not a good look.

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

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page

    Private TextView1 As TextView

End Sub

Private Sub Application_Start (Nav As NavigationController)
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    NavControl.ShowPage(Page1)
End Sub

Private Sub Page1_Resize(Width As Int, Height As Int)
    TextView1.Initialize("Event_TextView1")
    Page1.RootPanel.AddView(TextView1, 0, 0, Page1.RootPanel.Width, Page1.RootPanel.Height)
    TextView1.RequestFocus
End Sub

Private Sub Application_Background

End Sub

Private Sub Page1_KeyboardStateChanged(Height As Float)
    'Log(Height)
End Sub
 

Attachments

  • Test3.zip
    944 bytes · Views: 300
Last edited:

Yvon Steinthal

Active Member
Licensed User
Longtime User
Same problem, apparently its not an issue... so far at least the problem keeps popping up but it does nothing to my app...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…