DaleA Member Apr 14, 2021 #1 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.
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.
Q Quandalle Member Licensed User Apr 15, 2021 #2 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
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.
FabioRome Active Member Licensed User Longtime User May 19, 2023 #3 DaleA said: 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. Click to expand... B4X: Copy 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
DaleA said: 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. Click to expand... B4X: Copy 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)
DarkoT Active Member Licensed User Longtime User May 19, 2023 #4 DaleA said: 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. Click to expand... 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
DaleA said: 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. Click to expand... My suggestion is that you create your own msgbox (using ClassModule with form); you will have a full control over everything inside of object...
Erel B4X founder Staff member Licensed User Longtime User May 21, 2023 #5 DarkoT said: My suggestion is that you create your own msgbox Click to expand... Use B4XDialog. Cross platform and fully customizable. Upvote 0
DarkoT said: My suggestion is that you create your own msgbox Click to expand... Use B4XDialog. Cross platform and fully customizable.