Italian B4XPages - (scarso) Tutorial in italiano

Dey

Active Member
Licensed User
Longtime User
Non esiste B4XPage_KeyPress, tra gli eventi disponibili per le B4XPage. Ho appunto chiesto ("Wish") che venga implementato e penso che verrà fatto, dato che dovrebbe essere molto semplice (oltre al fatto che molti lo hanno cercato senza ovviamente trovarlo).
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
    Log($"${nameModule}.Activity_KeyPress (KeyCode ${KeyCode})"$)
    'Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
    If B4XPages.Delegate.Activity_KeyPress(KeyCode) Then Return True
    B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "B4XPage_KeyPress", Array(KeyCode))
    Return True
End Sub
:)
 

LucaMs

Expert
Licensed User
Longtime User
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
    Log($"${nameModule}.Activity_KeyPress (KeyCode ${KeyCode})"$)
    'Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
    If B4XPages.Delegate.Activity_KeyPress(KeyCode) Then Return True
    B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "B4XPage_KeyPress", Array(KeyCode))
    Return True
End Sub
:)
Secondo link del mio post #97
 
Top