B4A Question [Solved] Trying to use Msgbox2Async in Activity_KeyPress - asales    
Oct 12, 2019I have this code ,which I want to show the message when the user press the back button (keycode_back):
Sub Activity_KeyPress (KeyCode As Int) As ResumableSub
If KeyCode = KeyCodes.KEYCODE_BACK Then
Msgbox2Async("Do you need to click in the button!","Interruped", "Continue", "Cancel", "", Null, True)
Wait For Msgbox_Result (Result As Int)
If Result <> DialogResponse.POSITIVE Then
Return True...
B4J Tutorial How to change location to Msgbox2Async and other customizations - Star-Dust    
Jul 31, 2022   
(12 reactions)change location
You will surely have noticed that xui.Msgbox2Async places the alert in the center of the last form shown that depends on its Owner.
Sometimes there is a need to place it on a specific point on the screen. How to do?
Dim msg As JavaObject = xui.Msgbox2Async("Message"....RunMethod("PosDialog",Array (msg,300,300))
Wait For (msg) Msgbox_Result (Result As Int...
link: = xui.Msgbox2Async("Message","Title","","","",Null...
B4A Question Change color of buttons in Msgbox2Async? - jo1234    
Sep 8, 2018Hi,
how can I change the buttons in Msgbox2Async?
I use Erel's example https://www.b4x.com/android/forum/threads/theme-colors.87716/ to change the colors and added android:colorAccent, but did not manage to change the color of the buttons in the message box.
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
<color name="textColorPrimary">#ff000000</color>
<color name="actionbar...
B4J Question [Solved]How to change fx.MSGBOX_WARNING in Msgbox2Async() - Olaan    
May 3, 2025-------------------------------------------------------------------------------------
'new
Dim res As Object= xui.Msgbox2Async("Do...
Private Sub Button2_Click
'old
' Dim res As Int = fx.Msgbox2(MainForm, "Do...
link:
there was a double declaration for the same variable in the code. One as Int one as Object.
Thank ...
link: Here you have a sample project... hope this helps you. Good luck!...
link: 163842
I don't see the issue... besides the fact that there was a double declaration for the sa...
B4A Question MsgBox2Async in color? - Zeev Goldstein    
Nov 20, 2024hi Guys,
is it possible to show msgbox2async in colors?
text color ?
background color ?
a short sample will be appreciated
thanks...
link: World!").PopAll
Dim mbas As JavaObject=Msgbox2Async(cs,cs,"o","c","n...
link: -msgbox2async.97015/post-611823
thanks
looked at it and honestly i got lost
where do i put this code...
link: -msgbox2async.97015/post-611823...
B4A Question Msgbox2Async why doesn't it wait - RB Smissaert    
Nov 26, 2018.Color(iPromptColour).Append(strPrompt).Pop
End If
'can pass Null for no icon
Msgbox2Async...
Wait For Msgbox_Result(iResult As Int)
End If
End Sub
And I call this from Main like this:
Sub DeleteDuplicateSQL
Dim strSQL As String
Dim lAffectedRows As Long
Msgbox2Async("Are you sure..., 0, Null, General.bmpIcon32, True, True)
End If
Msgbox2Async("Are you sure to delete... the first cEvents.ShowMsg and I see the second Msgbox2Async first and
the first cEvents.ShowMsg only...
B4A Question Automatically closing a "Msgbox2Async" dialog - vecino    
May 23, 2024Hi, my question is if there is any way that a dialog can be closed without user intervention, for example after 10 seconds.
Msgbox2Async("Print?", "Warning", "Yes"...
link: See the XUI Views example: https://www.b4x.com/android/forum/threads/b4x-xui-views-cross-platform-vi...
link: Hello, is it possible to get an example of how to do it?
Thank you very much....
link: BTW, worth checking B4XTimedTemplate + B4XDialog (XUI Views)....
B4J Question Close xui.MsgboxAsync or xui.Msgbox2Async with code - Chris2    
Mar 8, 2024   
(1 reaction)Based on @Erel's code here....
xui.MsgboxAsync & xui.Msgbox2Async don't....Msgbox2Async("Question?", "Title", "Yes", "Cancel", "No"...
link: I thought others might find useful - closing xui.MsgboxAsync & xui.Msgbox2Async by code...
link: Hi,
maybe you can create your own message box (as Class module using B4XDialog), which will include...
link: Tip: you can use B4XDialog + B4XTimedTemplate
https://www.b4x.com/android/forum/attachments/timedte...
B4A Question MsgBox2Async with more than 3 buttons ? - marcick    
Jun 12, 2023How to implement it, like IOS ?...
link: B4XDialog with a custom layout and hide the standard buttons bar: https://www.b4x.com/android/forum/threads/b4x-input-dialogs-with-xui-views-hide-ok-canel-panel.148293/#post-939921...
B4A Question Msgbox2 buttons (Msgbox2Async) - Sergey_New    
Jun 3, 2023Can you please tell me how to disable uppercase in the button names for Msgbox2 (Msgbox2Async).
I used to see a way on the forum, but now I can not find it by searching for the word "allcaps...
link: I think the purpose of Google Material Design language is to provide a consistent user experience to...
link:
You mean you can customize how many pixels Left and Top?
Yes, you understood me correctly. I need ...
link: some hacking like modifying the manifest. I don't use the msgbox in my app as it looks ugly in...
Page: 1  
2  
3  
4