B4J Question How to - XUI.Msgbox2async "more options"?

GuyBooth

Active Member
Licensed User
Longtime User
Msgbox2Async provides more options:
SS-2017-10-19_15.35.48.png
SS-2017-10-19_15.38.01.png
SS-2017-10-19_15.38.42.png

In https://www.b4x.com/android/forum/threads/85201/#content Erel shows the above examples - but no code to show how to produce the second and third example of the three here.
Can anyone post how this is done (other than using XUI dialogs, as opposed to xui.msgbox2async)?
 

Harris

Expert
Licensed User
Longtime User
I JUST did this for my android app...

B4X:
' dir and fn were passed to this method...
' show a message box with result...
    Msgbox2Async("File Name: "&fn&CRLF&CRLF&"Dir: "&dir, "Selected Image","DELETE","CANCEL","",Null, True)
    Wait For Msgbox_Result (Result As Int)
    If Result = xui.DialogResponse_Positive Then
        If File.Delete(dir,fn)     Then
           BuildCLVList       
        End If
    End If
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User

In https://www.b4x.com/android/forum/threads/85201/#content Erel shows the above examples - but no code to show how to produce the second and third example of the three here.
Can anyone post how this is done (other than using XUI dialogs, as opposed to xui.msgbox2async)?
The second one is for B4i and the third one is for B4A, i'm assuming the same code is used since you can use the same class across all three platforms.

Regards,
Walter
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
you can use the same class across all three platforms
Yes, I assume so... B4X XUI is cross all 3 platforms.

However, since I use ABM on B4J, I don't worry about B4J apps - not relevant - yet it maybe to you.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Yes, I assume so... B4X XUI is cross all 3 platforms.

However, since I use ABM on B4J, I don't worry about B4J apps - not relevant - yet it maybe to you.
:eek:
 
Upvote 0
Top