I´ve been trying to use B4XPage_CloseRequest but it does not fire.
Not sure if I´m doing it right.
In B4XMainPage I have:
and in pMain class I have:
But it does not fire the event. Using 1.03 B4X Pages library
Thanks
Not sure if I´m doing it right.
In B4XMainPage I have:
B4X:
pMain.Initialize
B4XPages.AddPage("pMain", pMain)
Sleep(0)
B4XPages.ShowPageAndRemovePreviousPages("pMain")
and in pMain class I have:
B4X:
Private Sub pMain_CloseRequest As ResumableSub
If drawer.LeftOpen Then
drawer.LeftOpen = Not(drawer.LeftOpen)
Return False
Else
Return True
End If
End Sub
But it does not fire the event. Using 1.03 B4X Pages library
Thanks