B4J Question B4XMainPage

Sergey_New

Well-Known Member
Licensed User
Longtime User
How to intercept the MainForm_Closed event in B4XMainPage?
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
B4X:
Sub MainForm_CloseRequest (EventData As Event)
    B4XPages.Delegate.MainForm_CloseRequest(EventData)
End Sub
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
And what code should be in B4XMainPage?
Code like this:
B4X:
Sub B4XPage_CloseRequest As ResumableSub
    ...
    Return True
End Sub
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Solution
Top