B4J Question (Solved) Xui.Msgbox2Async (User presses "X")

LGS

Member
Licensed User
Hello everyone

I am using xui.Msgbox2Async and I have the following question:

How can I know that the user pressed the "X" that is at the top.

Why do I need to know this?
I need to show a message on page 1, and when the user presses "OK" close page 1 and then show page 2

If the user presses "X"
Msgbox_Result returns nothing

B4X:
    Dim respuesta As Object = xui.Msgbox2Async("Text", "Tittle", "Ok", "", "", Null)
    Wait For (respuesta) Msgbox_Result (Resultado As Int)
    If Resultado = xui.DialogResponse_Positive Then
        Log(Resultado) 'Press OK
    Else ' If the user presses the X icon, returns nothing
        Log(Resultado)
    End If

Thanks in advance
 

Attachments

  • X.PNG
    X.PNG
    3.8 KB · Views: 23
Top