B4J Question xui.Msgbox2Async message font size

DaleA

Member
A simple question, is there a way to change the font size when using XUI.Msgbox2Async? I've searched these forums and wasn't able to find anything that pertained.
 

Quandalle

Member
Licensed User
MsgBoxAsync uses the alert class of JavaFx. This class allows to define a style (.css) : size color, background color ...
However to my knowledge it is not possible to access this possibility from B4X.
A solution would be to modify the java source code of the MsgBoxAsync function.
But the easiest way is probably to use from B4x "B4XDialog - Custom dialogs" to design a box to your needs.
 
Upvote 0

FabioRome

Member
Licensed User
Longtime User
A simple question, is there a way to change the font size when using XUI.Msgbox2Async? I've searched these forums and wasn't able to find anything that pertained.
B4X:
Dim obj As CSBuilder
xui.Msgbox2Async(obj.Initialize.Size(18).Append("text_message" ).PopAll, _
obj.Initialize.Color(Colors.ARGB(255, 112,0,0)).Size(20).Append($"titlemsgbox"$).PopAll, "OK", "", "", Null)
 
Upvote 0

DarkoT

Active Member
Licensed User
A simple question, is there a way to change the font size when using XUI.Msgbox2Async? I've searched these forums and wasn't able to find anything that pertained.
My suggestion is that you create your own msgbox (using ClassModule with form); you will have a full control over everything inside of object...
 
Upvote 0
Top