Android Question Fontawesome in MsgBox

peacemaker

Expert
Licensed User
Longtime User
HI, All

Is it possible to make the international MsgBox without any text ?
Only using Fontawesome symbols and punctuation marks.

If i try to use like
B4X:
Msgbox2Async(Chr(0xF057) & " ?", Chr(0xF03E), Chr(0xF057) & " !", Chr(0xF05E), "", Null, False)

all Fontawesome symbols are unreadable, but MESSAGE and TITLE should be OK as CharSequence...

Msgbox2Async(" ?", "☠:", " → !", "⤺", "", Null, False)
TempDownload.png

Is it clear MsgBox ?
TempDownload2.png
 
Last edited:

stevel05

Expert
Licensed User
Longtime User
I don't think it's possible to change the Font for any of the msgbox objects, I suggest you look at B4xDialogs (Part of XUIViews) in which you can define pretty much everything and even load a layout for your dialog.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
As an example, Select XUI and XUI Views Libraries, Add Global variable XUI = XUI and use this code:

B4X:
    Dim D As B4XDialog
    D.Initialize(Activity)
    D.TitleBarFont = XUI.CreateFontAwesome(20)
    D.Title =  Chr(0xF03E)
    D.ButtonsFont = XUI.CreateFontAwesome(20)
    
    Wait For (D.Show(Chr(0xF057) & " ?", Chr(0xF057) & " !","",Chr(0xF05E))) Complete (Result As Int)
    Log(Result)
 
Upvote 0
Top