Msgbox2Async (Message As CharSequence, Title As CharSequence, Positive As String, Cancel As String, Negative As String, Icon As Bitmap, Cancelable As Boolean) As ObjectShows a non-modal message box with the specified message and title. The Msgbox_Result event will be raised with the result.Message - The dialog message. Title - The dialog title. Positive - The text to show for the "positive" button. Pass "" to hide the button. Cancel - The text to show for the "cancel" button. Pass "" to hide the button. Negative - The text to show for the "negative" button. Pass "" to hide the button. Icon - A bitmap that will be drawn near the title. Pass Null to hide hide the icon. Cancelable - If true then the dialog can be canceled by clicking on the back key or outside the dialog. The object returned can be used as the Sender Filter parameter of Wait For. Example: Msgbox2Async("Question?", "Title", "Yes", "Cancel", "No", Null, False) Wait For Msgbox_Result (Result As Int) If Result = DialogResponse.POSITIVE Then '... End If B4A Question [Solved] Trying to use Msgbox2Async in Activity_KeyPress - asales    Oct 12, 2019 I 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   (9 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... B4A Question Msgbox2Async and LoadBitmapResize - ciginfo    Mar 13, 2024 .DirAssets, "btnsourd.png", 60dip, 200dip, True)
Msgbox2Async("Voulez vous envoyer...Hello,
How to modify the size of the icon that I place in a Msgbox.
If I change the values 60dip... B4J Question Close xui.MsgboxAsync or xui.Msgbox2Async with code - Chris2    Mar 8, 2024 Based on @Erel's code here....
xui.MsgboxAsync & xui.Msgbox2Async don't....Msgbox2Async("Question?", "Title", "Yes", "Cancel", "No"... 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 MsgBox2Async with more than 3 buttons ? - marcick    Jun 12, 2023 How to implement it, like IOS ?... B4A Question Cancelable parameter in xui.Msgbox2Async - asales    Apr 6, 2022 I'm starting to change my MsgBox2Async calls to xui.Msgbox2Async but I don't saw the Cancelable parameter.
Is possible to close the xui.Msgbox2Async with the back key?
Thanks in advance for any tip.... B4A Question Change color of buttons in Msgbox2Async? - jo1234    Sep 8, 2018 Hi, 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... B4A Question [Solved] - Null pointer error with Msgbox2Async - rleiman    Apr 27, 2021 Greetings,
This example coding is from the community search for Msgbox2Async. When I run an app... the example coding I found is missing?
Thanks.
Msgbox2Async("Question?", "Title"... B4A Question Trap close request with Msgbox2Async? - agraham    Jul 1, 2020
End If
Return False
End Sub
In the brave new world of Msgbox2Async how do we achieve the same... spot. In the old days we would use a modal Msgbox2 to block a close request event until the user... Page: 1   2   3   4   |