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", "Title", "Yes" B4J Question Catch MsgBox (xui.MsgboxAsync) MouseClick - Erel (first post) Oct 09, 2022 (1 reaction) Exactly the same as with XUI.Msgbox2Async. B4J Question change msgbox text alignment - Erel (first post) Feb 14, 2023 (1 reaction) 139277
Private Sub SetRTL(Alert As JavaObject)
Alert.RunMethodJO("getDialogPane", Null).RunMethod("setNodeOrientation", Array("RIGHT_TO_LEFT"))
End Sub
Usage:
SetRTL(xui.MsgboxAsync("ניסיון", "aaa")) B4J Question Close xui.MsgboxAsync or xui.Msgbox2Async with code - Erel (first post) Mar 10, 2024 (1 reaction) Tip: you can use B4XDialog + B4XTimedTemplate
https://www.b4x.-gif.76420/ B4J Tutorial Msgbox / InputList - Erel Dec 17, 2015 (24 reactions) Simple message box:
fx.Msgbox(MainForm, "This is the message", "This is the title")
https://www.b4x.com/basic4android/images/SS-2015-12-17_12.19.19.png
Message box with result:
Dim res As Int = fx.Msgbox2(MainForm, "Do you want to save changes?", "Save", _
"Yes", "Cancel", "No", fx.MSGBOX_WAR B4J Question [ABMaterial] B4JS+B4J 7.80= Not working - alwaysbusy (first post) Sep 19, 2019 (1 reaction) And:
page.Msgbox("msgbox", "Your complex calculation is now " & ResultLabel.Text, "Result", "OK", False, ABM.MSGBOX_POS_CENTER_CENTER, "")
With:
Log("Your complex calculation is now " & ResultLabel.Text)
In the console of the browser, the responses will show instead of an Msgbox.
Alain B4J Question B4xpages and msgbox ? - LucaMs (first post) Nov 05, 2022 (2 reactions) Dim sf As Object = xui.Msgbox2Async("Delete file?", "Title", "Yes", "Cancel", "No", Null)
Wait For (sf) Msgbox_Result (Result As Int)
If Result = xui.DialogResponse_Positive Then
Log("Deleted!!!")
End If B4J Tutorial [ABMaterial] Msgbox and InputBox (2.51) - alwaysbusy Feb 12, 2017 (14 reactions) Sometimes you just need to show a quick msgbox or a single field inputbox to the user. In ABMaterial you can build some quick modal sheets to do this. But in 2.51 I've integrated the possibility for such cases just to do it in one line of code (like a normal msgbox/inputbox).
Examples:
page.Msgb B4J Question Save B4XTable data to a remote database?Thank you for your help - guandjy (first post) Feb 17, 2024 ExecuteCommand(cmd1,Null)) JobDone(j As HttpJob) If j.Success Then xui.MsgboxAsync("更新成功!","") Else Log("ERROR (7): " & j.ErrorMessage) xui.MsgboxAsync("保存失败!","") End If j.Release Loop rs.Close B4J Question [Solved] TextEngine.TagParser.ErrorString persisting - Erel (first post) May 04, 2023 (1 reaction) 1. jMsgboxes is never needed. Use xui.MsgboxAsync instead.
2. Please don't upload fxml layouts in projects that I'm expected to test. It only makes things more complicated.
3. The error happens in BBScrollingLabel. I'll release a fix. Page: 1 2 3 4 5 6 7 Powered by ColBERT |