A lot of work is needed, so I will publish everything and ask you all only for a donation of €10,000 ? (or more, if you want ?)
[How do you insert emojis into thread titles? ]
P.S.
I'm currently "taking" all the snippets provided by Erel (excluding very few, for various reasons) and creating the related text files. Then those of the other members.
P.P.S. So far I have copied (and created snippet text files) only 24 Erel B4J snippets. I'm sweating even though it's cold! ?
Private Sub B4XPage_CloseRequest As ResumableSub
Dim sf As Object = xui.Msgbox2Async("Do you really want to close?", "", "Yes", "", "No", Null)
Wait For (sf) Msgbox_Result (Result As Int)
If Result = xui.DialogResponse_Positive Then
Return True
End If
Return False
End Sub
1. On some pages it can be used if the user has not saved data;
2. Some people don't know xui.MsgBox2Async;
3. I always forget whether to cancel the closing I have to write True or False ?